Cmem is not about faster.Are you shure?
But when using cmem, the code runs approximately 8-10 x faster than the original.
Can not reproduce. Make sure use heaptrc is de-selected in Lazarus
I have tested your project on Win32 Vista, Lazarus 2.0.0 / FPC 3.0.4 both Debug (with heaptrc enabled), Release modes with folowing uses statement.Can not reproduce. Make sure use heaptrc is de-selected in Lazarus
Does this mean, I should not use the "Use Heaptrc unit ..." combobox in project options? I have several build modes and for each one a copy with debugging + heaptrc enabled.
How is the prefered way to activate heaptrc?
Thanks,
antispam88
Can not reproduce. Make sure use heaptrc is de-selected in Lazarus
Does this mean, I should not use the "Use Heaptrc unit ..." combobox in project options? I have several build modes and for each one a copy with debugging + heaptrc enabled.
How is the prefered way to activate heaptrc?
Thanks,
antispam88
As I explained on the wiki you can not mix heaptrc with cmem.
https://wiki.freepascal.org/heaptrc
The wiki explains all available options to keep your sources clean.
(Note someone on the forum created a kind of hybrid between heaptrc and cmem, but that is insufficiently tested and the tests I have done do indicate that the patch is unstable or doesn't work at all.)
(Also note that cmem is really only necessary if your program interfaces with C code that does memory allocations. Any other advantages, including speed, are by accident or spurious. I.E you are fooling yourself)
That code runs on Linux, where it is somewhat more standard.That code runs not only on Linux
QuoteThat code runs on Linux, where it is somewhat more standard.That code runs not only on LinuxI have tested that code on Win32 Vista.
{$IFDEF UNIX}CThreads,{$ENDIF}