PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Christian Weilguny on October 01, 2012, 02:07:25 PM

Title: GlobalMem for objects
Post by: Christian Weilguny on October 01, 2012, 02:07:25 PM
Hi,

is there a way to put an object to memory allocated by GLOBALMEM or GlobalAlloc?
I have not found a way to get the size of an existing object, too.

Thanks for helping

Christian
Title: Re: GlobalMem for objects
Post by: José Roca on October 01, 2012, 02:19:11 PM
No. Objects allocate/deallocate its own memory. Also, I don't see the purpose of doing such a thing.
Title: Re: GlobalMem for objects
Post by: Christian Weilguny on October 01, 2012, 03:00:39 PM
Jose wrote:
QuoteAlso, I don't see the purpose of doing such a thing.

I have a custom control for FF 3.10.This control need a RecordSet for each instance. There is the possibility to make a variant-array and put the Recs in this array and store the index in the extra window data. But this is not very smart. More sophisticated would be, to create a memory-block for the RecordSet and store the pointer to the extra window data.

Christian