Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-12

Christmas present for Windows lazarus developers : Memproof instaler 2.2MB

14 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter E Williams

Hi all,

Here is a link to Memproof_installer.zip (2.2MB).

http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html

This is what I originally used many years ago with Delphi 5 Enterprise to write my shareware (which never really sold) and later became mostly public domain freeware now found on http://pewink.info in the Delphi source code page.

Memproof is a stand alone application.

Instructions:

click here

http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html

and save the 2.2 MB fie to disk.

Unzip it with whatever you like and save the exe file. Then run it. It is a standard installation exe file by the same company that wrote Memproof (not me).

Then open the memproof folder and run memproof and read the instructions in the help file. You will need to set certain Optimization options off and other Delphi 5 compilation options. They have a red circle and arrows in the help file.

Don't ask me as it has been years since I did this.

An interesting note is that later versions of memproof did NOT include the help file... so save it if you install a later version of memproof.

Then open Delphi or Lazarus and compile your project (say, "hello_fred" project) with the correct settings as described in the Memproof help file.

Close Delphi or Lazarus.

Open Memproof and the open your project (hello_fred.exe).

Run it (hello_fred.exe) within Memproof (not as a Windows exe file).

Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created. You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s).

This is then a process of recompiling it with Delphi or Lazarus and reopening it with Memproof and running it until there are no memory leaks.

Happy Debugging and Merry Christmas 2010

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com
My free blog is: patientxmarksthespot.wordpress.com -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101224/e67ddccd/attachment.html>

Reply by email

Michael Van Canneyt
to Peter E Williams
Peter E Williams wrote
Hi all, Here is a link to Memproof_installer.zip (2.2MB).

[snip]

Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created. You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s).

While it is a nice gesture to give presents, I don't see the practical use. FPC contains this feature out of the box, you can just compile with -gl.

Michael.

Reply by email

Alexsander Rosa
to Michael Van Canneyt

Is there an easy way to use it from inside the Lazarus IDE?

2010/12/24 Michael Van Canneyt

Show quoted text 28 lines
On Fri, 24 Dec 2010, Peter E Williams wrote: Hi all, > > Here is a link to Memproof_installer.zip (2.2MB). > > [snip] Memproof will show all memory assignments and memory leaks. It will also > jump to the line in your source code where the memory leak variable was > created. > You then need to decide where to call Free or FreeAndNil for the object(s) > which you created and forgot to free, causing the memory leak(s). > While it is a nice gesture to give presents, I don't see the practical use. FPC contains this feature out of the box, you can just compile with -gl. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Atenciosamente, Alexsander da Rosa Linux User #113925 "Extremismo na defesa da liberdade n?o ? defeito. Modera??o na busca por justi?a n?o ? virtude." -- Barry Goldwater -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101224/d5919aed/attachment.html>

Reply by email

Graeme Geldenhuys
to Alexsander Rosa

2010/12/24 Alexsander Rosa :

Is there an easy way to use it from inside the Lazarus IDE?

Yes there is a add-on you can install in Lazarus IDE. I have it installed at work, but can't remember it's name now, sorry.

Even without the add-on installed, it is very easy to read and understand the output that -gl generates.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net:8080/fpgui/

Reply by email

Marco van de Voort
to Michael Van Canneyt: [snip] While it is a nice gesture to give presents, I don't see the practical use. FPC…
Michael Van Canneyt wrote 8 lines
> Here is a link to Memproof_installer.zip (2.2MB). > [snip] > Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created. > You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s). While it is a nice gesture to give presents, I don't see the practical use. FPC contains this feature out of the box, you can just compile with -gl.

Afaik memproof (which is like AQTime-lite) needs explicitely debug format support, and that's why it doesn't work after D7. For decent traces it also required the TD32 debuginfo to be turned on, and I doubt it understands stabs or dwarf.

Reply by email

Peter E Williams
to Marco van de Voort

Hi Marco and all,

see comments below

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com
My free blog is: patientxmarksthespot.wordpress.com

Marco van de Voort wrote 8 lines
On Fri, Dec 24, 2010 at 12:11:20PM +0100, Michael Van Canneyt wrote: > > Here is a link to Memproof_installer.zip (2.2MB). > > > [snip] > > Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created.

Yes, this is an excellent feature of it. You can watch all the variable and constant allocations AS your program is being run from within memproof.

Show quoted text 7 lines
> > You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s). > > While it is a nice gesture to give presents, I don't see the practical use. > FPC contains this feature out of the box, you can just compile with -gl.

Is there a tutorial on how to use this? My application which I am currently developing are for Lazarus not Free Pascal so I would need something which has a GUI interface ?!? Or am I wrong?

Show quoted text 6 lines
Afaik memproof (which is like AQTime-lite) needs explicitely debug format support, and that's why it doesn't work after D7. For decent traces it also required the TD32 debuginfo to be turned on, and I doubt it understands stabs or dwarf.

Yes, correct. You need to [ ] Optimization (uncheck) and [x] TD32 debug info (check it) and there is probably another option also. Please install it and read the help file.

stabs or dwarf are new technologies to me. I know nothing about these things.
:(

I think that I will reinstall Delphi 5 Enterprise and Memproof on my Mint 10 computer with WINE 1.3 and see if it works.

PEW

Show quoted text 6 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101225/6940c62d/attachment.html>

Reply by email

Joshua Lim
to Peter E Williams: Here is a link to Memproof_installer.zip (2.2MB).…

Hi Peter, thanks, this downloader site keeps returning me to the wait page - http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html

Rgds,
Joshua

Peter E Williams wrote 72 lines
Hi all, Here is a link to Memproof_installer.zip (2.2MB). http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html This is what I originally used many years ago with Delphi 5 Enterprise to write my shareware (which never really sold) and later became mostly public domain freeware now found on http://pewink.info in the Delphi source code page. Memproof is a stand alone application. Instructions: click here http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html and save the 2.2 MB fie to disk. Unzip it with whatever you like and save the exe file. Then run it. It is a standard installation exe file by the same company that wrote Memproof (not me). Then open the memproof folder and run memproof and read the instructions in the help file. You will need to set certain Optimization options off and other Delphi 5 compilation options. They have a red circle and arrows in the help file. Don't ask me as it has been years since I did this. An interesting note is that later versions of memproof did NOT include the help file... so save it if you install a later version of memproof. Then open Delphi or Lazarus and compile your project (say, "hello_fred" project) with the correct settings as described in the Memproof help file. Close Delphi or Lazarus. Open Memproof and the open your project (hello_fred.exe). Run it (hello_fred.exe) within Memproof (not as a Windows exe file). Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created. You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s). This is then a process of recompiling it with Delphi or Lazarus and reopening it with Memproof and running it until there are no memory leaks. Happy Debugging and Merry Christmas 2010 Fond Regards, Peter Eric WILLIAMS --- Hobart, Tasmania, Australia --- Phone: +61 (03) 6236-9675 My free websites are: http://pewink.info (&) http://pewslinuxvault.googlepages.com My free blog is: patientxmarksthespot.wordpress.com <http://patientxmarksthespot.wordpress.com> ------------------------------------------------------------------------ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Peter E Williams
to Joshua Lim

Hi Joshua and all,

Just click on [ Regular Download ] and your download will proceed. The [ Premium Download ] is for those folk who are downloading iso images and need very fast connections.

As it is a 2.2MB .zip file it will only take less than 1 minute to download. Then unzip it with your favourite unarchiver and run the .exe installer.

Any more questions?

Please note the previous reply that it will only work with Delphi 6 and below and not with current Lazarus as Memproof needs TD32 Debug info which Lazarus IIRC does NOT provide. I am a little ignorant of all the debugging terminology for Lazarus versus Delphi.

PEW

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com

Joshua Lim wrote 89 lines
Hi Peter, thanks, this downloader site keeps returning me to the wait page - http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html Rgds, Joshua Peter E Williams wrote: > Hi all, > > Here is a link to Memproof_installer.zip (2.2MB). > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > This is what I originally used many years ago with Delphi 5 Enterprise to > write my shareware (which never really sold) and later became mostly public > domain freeware now found on http://pewink.info in the Delphi source code > page. > > Memproof is a stand alone application. > > Instructions: > > click here > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > and save the 2.2 MB fie to disk. > > Unzip it with whatever you like and save the exe file. Then run it. It is > a standard installation exe file by the same company that wrote Memproof > (not me). > > Then open the memproof folder and run memproof and read the instructions > in the help file. You will need to set certain Optimization options off and > other Delphi 5 compilation options. They have a red circle and arrows in the > help file. > > Don't ask me as it has been years since I did this. > > An interesting note is that later versions of memproof did NOT include the > help file... so save it if you install a later version of memproof. > > Then open Delphi or Lazarus and compile your project (say, "hello_fred" > project) with the correct settings as described in the Memproof help file. > > Close Delphi or Lazarus. > > Open Memproof and the open your project (hello_fred.exe). > > Run it (hello_fred.exe) within Memproof (not as a Windows exe file). > > Memproof will show all memory assignments and memory leaks. It will also > jump to the line in your source code where the memory leak variable was > created. You then need to decide where to call Free or FreeAndNil for the > object(s) which you created and forgot to free, causing the memory leak(s). > > This is then a process of recompiling it with Delphi or Lazarus and > reopening it with Memproof and running it until there are no memory leaks. > > Happy Debugging and Merry Christmas 2010 > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > My free blog is: patientxmarksthespot.wordpress.com < > http://patientxmarksthespot.wordpress.com> > > ------------------------------------------------------------------------ > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101225/b48dba4a/attachment.html>

Reply by email

Sven Barth
to Peter E Williams: see comments below Fond Regards, Peter Eric WILLIAMS --- Hobart, Tasmania, Australia ---…
Peter E Williams wrote
Is there a tutorial on how to use this? My application which I am currently developing are for Lazarus not Free Pascal so I would need something which has a GUI interface ?!? Or am I wrong?

"-gl" allows you to e.g. dump an exception back trace from within your program. This happens normally if an exception isn't caught and raises through the main Pascal block (the "begin ... end." block in the "program" file).

On the command line FPC will then print something like this:

An unhandled exception occurred at $080480BD :
Exception : Some evil exception
$080480BD TMYOBJECT__METHOD1, line 15 of backtrace.pp $08048110 PROC3, line 22 of backtrace.pp
$08048148 PROC2, line 30 of backtrace.pp
$08048158 PROC1, line 35 of backtrace.pp
$0804816D main, line 39 of backtrace.pp

You can even print that yourself if you don't have a StdOut available: The procdure DumpExceptionBackTrace which is available through the system unit allows you to print such a stack trace to a custom file (Pascal style file).

E.g. (untested, but correct code should be at least similar):

var
   f: Text;
begin
   Assign(f, '/tmp/mybacktrace.txt');
   Rewrite(f);
   try
     SomeExceptionRaisingCode;
   except
     on e: Exception do begin
       Writeln(f, e.ClassName, ' : ', e.Message);
       DumpExceptionBackTrace(f);
     end;
   end;
   Close(f);
end;

This will print the output from above to the file
'/tmp/mybacktrace.txt'. If you assign a stream to a text file (using the unit streamio) you can even write to a TStream descendant of your choice and do some nice things. Or you could wrap the dbugintf unit like streamio wraps TStream to dump such an exception back trace to a running debugserver. The possibilities are near endless :)

Show quoted text 17 lines
Afaik memproof (which is like AQTime-lite) needs explicitely debug format support, and that's why it doesn't work after D7. For decent traces it also required the TD32 debuginfo to be turned on, and I doubt it understands stabs or dwarf. Yes, correct. You need to [ ] Optimization (uncheck) and [x] TD32 debug info (check it) and there is probably another option also. Please install it and read the help file. stabs or dwarf are new technologies to me. I know nothing about these things. :(

Stabs and DWARF are the debug formats supported by Free Pascal. They are used in other Open Source software as well (e.g. gcc) unlike the proprietary TD32 debug format. Take a look at the units rtl/inc/lineinfo.pp and rtl/inc/lnfodwrf.pp. Using the public function GetLineInfo you can retrieve the function/procedure/method name, the unit name and the source line of a given address within your program (if it was compiled with "-gl" at least).

Regards,
Sven

Reply by email

Joshua Lim
to Joshua Lim: Hi Peter, thanks, this downloader site keeps returning me to the wait page -…

Hi Peter, thanks, I tried again a couple hours later, it now works. Do you think this method can work for services?

Rgds,
Joshua

Joshua Lim wrote 91 lines
Hi Peter, thanks, this downloader site keeps returning me to the wait page - http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html Rgds, Joshua Peter E Williams wrote: > Hi all, > > Here is a link to Memproof_installer.zip (2.2MB). > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > This is what I originally used many years ago with Delphi 5 > Enterprise to write my shareware (which never really sold) and later > became mostly public domain freeware now found on http://pewink.info > in the Delphi source code page. > > Memproof is a stand alone application. > > Instructions: > > click here > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > and save the 2.2 MB fie to disk. > > Unzip it with whatever you like and save the exe file. Then run it. > It is a standard installation exe file by the same company that wrote > Memproof (not me). > > Then open the memproof folder and run memproof and read the > instructions in the help file. You will need to set certain > Optimization options off and other Delphi 5 compilation options. They > have a red circle and arrows in the help file. > > Don't ask me as it has been years since I did this. > > An interesting note is that later versions of memproof did NOT > include the help file... so save it if you install a later version of > memproof. > > Then open Delphi or Lazarus and compile your project (say, > "hello_fred" project) with the correct settings as described in the > Memproof help file. > > Close Delphi or Lazarus. > > Open Memproof and the open your project (hello_fred.exe). > > Run it (hello_fred.exe) within Memproof (not as a Windows exe file). > > Memproof will show all memory assignments and memory leaks. It will > also jump to the line in your source code where the memory leak > variable was created. You then need to decide where to call Free or > FreeAndNil for the object(s) which you created and forgot to free, > causing the memory leak(s). > > This is then a process of recompiling it with Delphi or Lazarus and > reopening it with Memproof and running it until there are no memory > leaks. > > Happy Debugging and Merry Christmas 2010 > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > My free blog is: patientxmarksthespot.wordpress.com > <http://patientxmarksthespot.wordpress.com> > > ------------------------------------------------------------------------ > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Peter E Williams
to Joshua Lim

Hi Joshua,

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com

Joshua Lim wrote 13 lines
Hi Peter, thanks, I tried again a couple hours later, it now works. Do you think this method can work for services? Rgds, Joshua Joshua Lim wrote: > Hi Peter, thanks, this downloader site keeps returning me to the wait page > - http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > >

Yes, this should work like any Internet url.

Please visit http://hotfile.com and sign up as a new user. Then each time you visit hotfile.com you will be taken to the page where you can click on 'upload file'. It transfers files at standard upload speeds and there is a paid premium option if you want fast downloads, which I don't use because I don't upload large files normally.

Rgds,

> Joshua >

Pew :)))

Show quoted text 92 lines
Peter E Williams wrote: > >> Hi all, >> >> Here is a link to Memproof_installer.zip (2.2MB). >> >> http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html >> >> This is what I originally used many years ago with Delphi 5 Enterprise to >> write my shareware (which never really sold) and later became mostly public >> domain freeware now found on http://pewink.info in the Delphi source >> code page. >> >> Memproof is a stand alone application. >> >> Instructions: >> >> click here >> >> http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html >> >> and save the 2.2 MB fie to disk. >> >> Unzip it with whatever you like and save the exe file. Then run it. It is >> a standard installation exe file by the same company that wrote Memproof >> (not me). >> >> Then open the memproof folder and run memproof and read the instructions >> in the help file. You will need to set certain Optimization options off and >> other Delphi 5 compilation options. They have a red circle and arrows in the >> help file. >> >> Don't ask me as it has been years since I did this. >> >> An interesting note is that later versions of memproof did NOT include >> the help file... so save it if you install a later version of memproof. >> >> Then open Delphi or Lazarus and compile your project (say, "hello_fred" >> project) with the correct settings as described in the Memproof help file. >> >> Close Delphi or Lazarus. >> >> Open Memproof and the open your project (hello_fred.exe). >> >> Run it (hello_fred.exe) within Memproof (not as a Windows exe file). >> >> Memproof will show all memory assignments and memory leaks. It will also >> jump to the line in your source code where the memory leak variable was >> created. You then need to decide where to call Free or FreeAndNil for the >> object(s) which you created and forgot to free, causing the memory leak(s). >> >> This is then a process of recompiling it with Delphi or Lazarus and >> reopening it with Memproof and running it until there are no memory leaks. >> >> Happy Debugging and Merry Christmas 2010 >> >> Fond Regards, Peter Eric WILLIAMS >> --- Hobart, Tasmania, Australia >> --- Phone: +61 (03) 6236-9675 >> My free websites are: http://pewink.info (&) >> http://pewslinuxvault.googlepages.com >> My free blog is: patientxmarksthespot.wordpress.com < >> http://patientxmarksthespot.wordpress.com> >> >> ------------------------------------------------------------------------ >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101226/c7240737/attachment.html>

Reply by email

Joshua Lim
to Peter E Williams

Hi Peter, thanks, what I mean is if it works for NT services.

Peter E Williams wrote 146 lines
Hi Joshua, Fond Regards, Peter Eric WILLIAMS --- Hobart, Tasmania, Australia --- Phone: +61 (03) 6236-9675 My free websites are: http://pewink.info (&) http://pewslinuxvault.googlepages.com On 26 December 2010 03:26, Joshua Lim < <mailto:>> wrote: Hi Peter, thanks, I tried again a couple hours later, it now works. Do you think this method can work for services? Rgds, Joshua Joshua Lim wrote: Hi Peter, thanks, this downloader site keeps returning me to the wait page - http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html Yes, this should work like any Internet url. Please visit http://hotfile.com and sign up as a new user. Then each time you visit hotfile.com <http://hotfile.com> you will be taken to the page where you can click on 'upload file'. It transfers files at standard upload speeds and there is a paid premium option if you want fast downloads, which I don't use because I don't upload large files normally. Rgds, Joshua Pew :))) Peter E Williams wrote: Hi all, Here is a link to Memproof_installer.zip (2.2MB). http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html This is what I originally used many years ago with Delphi 5 Enterprise to write my shareware (which never really sold) and later became mostly public domain freeware now found on http://pewink.info in the Delphi source code page. Memproof is a stand alone application. Instructions: click here http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html and save the 2.2 MB fie to disk. Unzip it with whatever you like and save the exe file. Then run it. It is a standard installation exe file by the same company that wrote Memproof (not me). Then open the memproof folder and run memproof and read the instructions in the help file. You will need to set certain Optimization options off and other Delphi 5 compilation options. They have a red circle and arrows in the help file. Don't ask me as it has been years since I did this. An interesting note is that later versions of memproof did NOT include the help file... so save it if you install a later version of memproof. Then open Delphi or Lazarus and compile your project (say, "hello_fred" project) with the correct settings as described in the Memproof help file. Close Delphi or Lazarus. Open Memproof and the open your project (hello_fred.exe). Run it (hello_fred.exe) within Memproof (not as a Windows exe file). Memproof will show all memory assignments and memory leaks. It will also jump to the line in your source code where the memory leak variable was created. You then need to decide where to call Free or FreeAndNil for the object(s) which you created and forgot to free, causing the memory leak(s). This is then a process of recompiling it with Delphi or Lazarus and reopening it with Memproof and running it until there are no memory leaks. Happy Debugging and Merry Christmas 2010 Fond Regards, Peter Eric WILLIAMS --- Hobart, Tasmania, Australia --- Phone: +61 (03) 6236-9675 My free websites are: http://pewink.info (&) http://pewslinuxvault.googlepages.com My free blog is: patientxmarksthespot.wordpress.com <http://patientxmarksthespot.wordpress.com> <http://patientxmarksthespot.wordpress.com> ------------------------------------------------------------------------ -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list <mailto:> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Peter E Williams
to Joshua Lim

Hi Joshua,

I think it does work on Windows NT. I know quite well a Delphi programmer named Michael Phillips and he still uses Delphi 7 as well as Turbo Pascal and he was a Windows NT communications Delphi and Pascal programmer up until about 3 years ago.

Michael's Home Page
*Last Updated: 18 August 2009*
http://members.pcug.org.au/~mphillip/

Delphi TIPS and Pascal TIPS
http://members.pcug.org.au/~mphillip/T_INDEX.HTM

It is worth looking at, if only to read about how simple it is to read comma separated value (CSV) files, and creating log files, etc

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com

Joshua Lim wrote 159 lines
Hi Peter, thanks, what I mean is if it works for NT services. Peter E Williams wrote: > Hi Joshua, > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > > > On 26 December 2010 03:26, Joshua Lim < <mailto: > >> wrote: > > Hi Peter, thanks, I tried again a couple hours later, it now > works. Do you think this method can work for services? > > Rgds, > Joshua > > > Joshua Lim wrote: > > Hi Peter, thanks, this downloader site keeps returning me to > the wait page - > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > > Yes, this should work like any Internet url. > > Please visit http://hotfile.com and sign up as a new user. Then each time > you visit hotfile.com <http://hotfile.com> you will be taken to the page > where you can click on 'upload file'. It transfers files at standard upload > speeds and there is a paid premium option if you want fast downloads, which > I don't use because I don't upload large files normally. > > > Rgds, > Joshua > > > Pew :))) > > > Peter E Williams wrote: > > Hi all, > > Here is a link to Memproof_installer.zip (2.2MB). > > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > This is what I originally used many years ago with Delphi > 5 Enterprise to write my shareware (which never really > sold) and later became mostly public domain freeware now > found on http://pewink.info in the Delphi source code page. > > Memproof is a stand alone application. > > Instructions: > > click here > > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > and save the 2.2 MB fie to disk. > > Unzip it with whatever you like and save the exe file. > Then run it. It is a standard installation exe file by the > same company that wrote Memproof (not me). > > Then open the memproof folder and run memproof and read > the instructions in the help file. You will need to set > certain Optimization options off and other Delphi 5 > compilation options. They have a red circle and arrows in > the help file. > > Don't ask me as it has been years since I did this. > > An interesting note is that later versions of memproof did > NOT include the help file... so save it if you install a > later version of memproof. > > Then open Delphi or Lazarus and compile your project (say, > "hello_fred" project) with the correct settings as > described in the Memproof help file. > > Close Delphi or Lazarus. > > Open Memproof and the open your project (hello_fred.exe). > > Run it (hello_fred.exe) within Memproof (not as a Windows > exe file). > > Memproof will show all memory assignments and memory > leaks. It will also jump to the line in your source code > where the memory leak variable was created. You then need > to decide where to call Free or FreeAndNil for the > object(s) which you created and forgot to free, causing > the memory leak(s). > > This is then a process of recompiling it with Delphi or > Lazarus and reopening it with Memproof and running it > until there are no memory leaks. > > Happy Debugging and Merry Christmas 2010 > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > My free blog is: patientxmarksthespot.wordpress.com > <http://patientxmarksthespot.wordpress.com> > <http://patientxmarksthespot.wordpress.com> > > > ------------------------------------------------------------------------ > > -- _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > > -- > _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101226/de09b8d4/attachment-0001.html>

Reply by email

Peter E Williams
to Joshua Lim: Hi Peter, thanks, what I mean is if it works for NT services.

Hi Joshua

It should work for Delphi but probably not for Lazarus.

PEW

Fond Regards, Peter Eric WILLIAMS
--- Hobart, Tasmania, Australia
--- Phone: +61 (03) 6236-9675
My free websites are: http://pewink.info (&)
http://pewslinuxvault.googlepages.com

Joshua Lim wrote 159 lines
Hi Peter, thanks, what I mean is if it works for NT services. Peter E Williams wrote: > Hi Joshua, > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > > > On 26 December 2010 03:26, Joshua Lim < <mailto: > >> wrote: > > Hi Peter, thanks, I tried again a couple hours later, it now > works. Do you think this method can work for services? > > Rgds, > Joshua > > > Joshua Lim wrote: > > Hi Peter, thanks, this downloader site keeps returning me to > the wait page - > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > > Yes, this should work like any Internet url. > > Please visit http://hotfile.com and sign up as a new user. Then each time > you visit hotfile.com <http://hotfile.com> you will be taken to the page > where you can click on 'upload file'. It transfers files at standard upload > speeds and there is a paid premium option if you want fast downloads, which > I don't use because I don't upload large files normally. > > > Rgds, > Joshua > > > Pew :))) > > > Peter E Williams wrote: > > Hi all, > > Here is a link to Memproof_installer.zip (2.2MB). > > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > This is what I originally used many years ago with Delphi > 5 Enterprise to write my shareware (which never really > sold) and later became mostly public domain freeware now > found on http://pewink.info in the Delphi source code page. > > Memproof is a stand alone application. > > Instructions: > > click here > > > http://hotfile.com/dl/91609295/6358c68/memproof_installer.zip.html > > and save the 2.2 MB fie to disk. > > Unzip it with whatever you like and save the exe file. > Then run it. It is a standard installation exe file by the > same company that wrote Memproof (not me). > > Then open the memproof folder and run memproof and read > the instructions in the help file. You will need to set > certain Optimization options off and other Delphi 5 > compilation options. They have a red circle and arrows in > the help file. > > Don't ask me as it has been years since I did this. > > An interesting note is that later versions of memproof did > NOT include the help file... so save it if you install a > later version of memproof. > > Then open Delphi or Lazarus and compile your project (say, > "hello_fred" project) with the correct settings as > described in the Memproof help file. > > Close Delphi or Lazarus. > > Open Memproof and the open your project (hello_fred.exe). > > Run it (hello_fred.exe) within Memproof (not as a Windows > exe file). > > Memproof will show all memory assignments and memory > leaks. It will also jump to the line in your source code > where the memory leak variable was created. You then need > to decide where to call Free or FreeAndNil for the > object(s) which you created and forgot to free, causing > the memory leak(s). > > This is then a process of recompiling it with Delphi or > Lazarus and reopening it with Memproof and running it > until there are no memory leaks. > > Happy Debugging and Merry Christmas 2010 > > Fond Regards, Peter Eric WILLIAMS > --- Hobart, Tasmania, Australia > --- Phone: +61 (03) 6236-9675 > My free websites are: http://pewink.info (&) > http://pewslinuxvault.googlepages.com > My free blog is: patientxmarksthespot.wordpress.com > <http://patientxmarksthespot.wordpress.com> > <http://patientxmarksthespot.wordpress.com> > > > ------------------------------------------------------------------------ > > -- _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > > -- > _______________________________________________ > Lazarus mailing list > > <mailto:> > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101229/4bd6bc38/attachment-0001.html>

Reply by email