Показать сообщение отдельно
Старый 02.10.2009, 14:53
nick_van_rijn вне форума Посмотреть профиль Отправить личное сообщение для nick_van_rijn Найти все сообщения от nick_van_rijn
  № 1  
Ответить с цитированием
nick_van_rijn

Регистрация: Feb 2009
Сообщений: 33
По умолчанию Течет память ExternalInteface

Помогите кто может, при частом вызове функций Flash из конетейнера течет память - мегабайтам.... думал что то в коде, выключил весь код как в контейнере так и во флэше, все тоже самое, значит дело именно в вызовах ExternalInterface.... не срабатывает GC и все тут, когда вызовов нет или flash работает внутри себя память не течет может кто сталкивался, принимаются самые буйные идеи... (GC насильно запускал разными способами, 0 результата).


нашел одно упоминание о проблеме I'm having trouble with a memory leak in my application. I'm hoping someone out there can help me find a fix or workaround, or tell me what I'm doing wrong.The leak seems to be coming from the flash external interface; specifically, IShockwaveFlash.SetReturnValue(String). My application is written in Visual Basic 2008, connecting to Flash 9.0.124.0 (activex version).I've written a fairly simple flash/VB program pair to illustrate the problem.The SWF contains a button, 2 dynamic text fields, and the ActionScript 2 code below.The VB project contains a Form with a AxShockwaveFlash object and the VB code below.When this program is run, and the button is clicked a lot (10's of thousands of times), the application's memory creeps up and never seems to fall back down. If the string passed to SetReturnValue is longer, memory is consumed faster. But if the call to SetReturnValue is commented-out, the application's memory usage remains stable.If anyone has any suggestions on how to proceed, I'd be grateful.(By the way: I'm using a freeware program called DoItAgain to automate the button pressing.) но идей решения не послеовало... я в общем то уже смирился с тем что течет flash10.ocx и все же....

Adobe Flash CS3, Delphi + flash10.ocx, FlashPlayer 10,0,32,18

Добавлено через 20 минут
[IMG]http://pic.************/uploads/091002/C7ZRVSRk1V.jpg[/IMG]
вот тут часто вызываются методы флэша без единой строки кода но видно какими объемами течет память.


Последний раз редактировалось nick_van_rijn; 02.10.2009 в 15:15.