Gerry,
thanks for the reply.
The position of the sys(1016) command is accepted from what i have read, but i can produce it using sys(1011) or windows resource meter (win98 and nt) the memory just keeps getting used up until the app comes to a screaming halt.
with the sample code i accept that you would have to do this a lot but in the real app it takes a form that is open 3 times on a 266 pentuim with 128mb of ram to slow to a crawl.
I have restructured the code to create properties and hold the object reference which seems to be the normal way people do it (from what i have read). this method seems to work fine when in fox (still leaks but not as bad) but when built as an app it seems to loose about 400k each time the same program is run (these are the figures from the real app). This is the major problem the inconsistency between running within fox and as an app!!
Wayne
Wayne Williams
Developer VFP