PDA

View Full Version : IActorLoader being instantiated over and over


vdods
10-19-2006, 12:32 PM
I am having persistent trouble with my uiOne application requesting my actor class ID over and over via AEEMOD_CREATEINSTANCE. This happens 28 or so times before it stops (possibly due to running out of memory).

I have studied the program flow of the CircleActor example carefully and have verified that the same things are being done in my own code (taking extra care to note ref counts). The nature of the problem seems to indicate a ref count is being lowered to 0 somewhere, thus destroying some object. I have experimented around with adding extra IVFSNODE_AddRef calls in various appropriate places, but this does not correct the problem. What else can I try?

PS: QualComm, in order to make development with your products quicker and more fun, please either provide source code or decent documentation. Thanks!

vdods
10-20-2006, 10:05 AM
Nevermind on this one. The problem was that I wasn't passing in the appropriate value for the name of the cache container for my actor's cache model.

MTTin
02-12-2007, 08:18 PM
Hi vdods,

Please give me your source code, I will try to study with you.

rgds,
Mai Trung Tin