Hi, It is easy - there are 2 things to do!!!!!
Firstly get FastMM4 from SourceForge, put it as the very first unit in your project - it DOES speed things up, and programs do work better. If the Delphi IDE is running, you also get a report when you close the project. Secondly, get MemProof - just do a Google search fo it.. Get the earlier full instal version AND the latest one - install the first one, as it has the help files, then just unzip the second one onto that folder.... follow the instructions and...... Good Luck Frank Reynolds Walger Software, West Australia >Hello, I am wondering if someone could spot a memory leak in my code. I >suspect there is a problem in the FreeData function, but the data seems ok >under the watch. What happens is that when I run my test program, I have it >save the data to a file, re-open it, and then free the data (myobject.free). >When the data gets freed, I get the CPU window open and it stops on a assembly >statement called "ret" If I run it through, it repeats this 2 more times then >causes a access violation. However, if I run the program without the debugger, >it goes through just fine. On the Destructor I call FreeData before the >inherited statement. If you want, i can show you the whole unit. I dont expect >you to understand all of it, such as tsxMalloc, etc which allocates data, and >other functions. However maybe there is something within my design that is >flawed? Also understand that I havnt slept in a while LOL I'll explain a bit >about the memory functions. tsxMalloc allocates memory and fills the data with >bogus data. tsxCalloc does the same thing but fills the data with nils and >0's. tsxFree frees the data allocated by those 2 functions. > > > __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
