[fpc-pascal] log memory usage at runtime
Hi, can the memory manager of fpc be watched at runtime? I'd like to log allocation and release of memory chunks by a GUI program under suspicion of leaking memory. This seems to be a problem only under some unknown circumstances... At least the total mem at start and end of on run should be logged. TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] log memory usage at runtime
At 16:35 27-10-2005, you wrote: Hi, can the memory manager of fpc be watched at runtime? I'd like to log allocation and release of memory chunks by a GUI program under suspicion of leaking memory. This seems to be a problem only under some unknown circumstances... At least the total mem at start and end of on run should be logged. You can create and install your own memory manager that wraps the original memory manager. just like the heaptrc unit does. Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] log memory usage at runtime
Am Donnerstag, den 27.10.2005, 16:40 +0200 schrieb Peter Vreman: > At 16:35 27-10-2005, you wrote: > >Hi, > > > >can the memory manager of fpc be watched at runtime? > > > >I'd like to log allocation and release of memory chunks by a GUI program > >under suspicion of leaking memory. This seems to be a problem only > >under some unknown circumstances... > > > >At least the total mem at start and end of on run should be logged. > > You can create and install your own memory manager that wraps the original > memory manager. just like the heaptrc unit does. I'll have a look at that, Thank you! Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] IDE problems and crosscompiling
Hi guys... I wish it were as simple as the docs say. On Linux, I type 'fp' and nothing happens - not even the first text appears on the screen, no CPU activity... Ctrl-C exits. I even tried to recompile the entire source code, ran the fp there, same (lack of) luck. I don't care much for the IDE, but I wanted to cross compile a program for DOS on my Linux machine, and found 'System unit missing'. I had installed the complete package automatically, but that contains only the i386-linux libraries, I suppose. I cannot find any indication how to make 'make' compile a win32 or dos version of the system unit. I've checked the Wiki, docs... Am hitting my head against the monitor now. Please. John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] IDE problems and crosscompiling
John Coppens wrote: Hi guys... I wish it were as simple as the docs say. On Linux, I type 'fp' and nothing happens - not even the first text appears on the screen, no CPU activity... Ctrl-C exits. I even tried to recompile the entire source code, ran the fp there, same (lack of) luck. I don't care much for the IDE, but I wanted to cross compile a program for DOS on my Linux machine, and found 'System unit missing'. I had installed the complete package automatically, but that contains only the i386-linux libraries, I suppose. I cannot find any indication how to make 'make' compile a win32 or dos version of the system unit. I've checked the Wiki, docs... Am hitting my head against the monitor now. Maybe a bit outdated, but this information was gold about a year ago, http://wiki.lazarus.freepascal.org/index.php/Cross_compiling_for_Win32_under_Linux Also the buildfaq.pdf is a good (and up to date) read, if you want to know details. Very handy if thing don't work right away. http://www.stack.nl/~marcov/buildfaq.pdf Vincent. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] IDE problems and crosscompiling
On Thu, 27 Oct 2005 21:05:56 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > Maybe a bit outdated, but this information was gold about a year ago, > http://wiki.lazarus.freepascal.org/index.php/Cross_compiling_for_Win32_under_Linux > > Also the buildfaq.pdf is a good (and up to date) read, if you want to > know details. Very handy if thing don't work right away. > http://www.stack.nl/~marcov/buildfaq.pdf > > Vincent. Hallo Vincent. Thanks for the info. I don't know how I passed over that item. I guess I didn't search in the Lazarus Wiki... Maybe this info - which isn't Lazarus-specific - should really be in the FPC-Wiki? Or at least crosslinked? I solved the problem temporarily, compiling the code under DOSEMU. Not too elegant, but it gives me the possibility to test the .exe's too. BTW, the IDE under dosemu crashes violently. I read something about that while looking for the other stuff... Again thanks, John ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal