Einzelnen Beitrag anzeigen

Benutzerbild von JamesTKirk
JamesTKirk

Registriert seit: 9. Sep 2004
Ort: München
604 Beiträge
 
FreePascal / Lazarus
 
#7

AW: Re: Class with strings in DLL

  Alt 2. Jan 2011, 12:18
I just googled this unit:

Code:
http://www.codexterity.com/fastsharemem.htm
I didn't knew that FastMM4 unit can be used as replacement too, thanks for this tip
I believe that FastMM4 is better than fastsharemem, especially as it allows you to detect memory leaks.

Zitat von WojTec:
I'm using D2010, FreePascal I selected by mistake, sorry
Nobody is perfect. I was just curious.

Zitat von WojTec:
I have next question, I used global (for DLL) record (it contains string and integers). When I used FastMM it detected memory leaks, when I nulled this record (rec.string := '', etc) memory leaks not occured. Why?
When do you initialize that record? It could be a false alarm, but I'm not that fond with FastMM as I'm not using it as leak detector.

Regards,
Sven
Sven
[Free Pascal Compiler Entwickler]
this post is printed on 100% recycled electrons
  Mit Zitat antworten Zitat