Re: [fpc-pascal] exitproc?

2014-08-05 Thread Tomas Hajny
On Tue, August 5, 2014 02:00, waldo kitty wrote: back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this still able to be done easily? does it

Re: [fpc-pascal] exitproc?

2014-08-05 Thread leledumbo
is this still able to be done easily? No difference I guess: http://www.freepascal.org/docs-html/rtl/system/exitproc.html However, this is better: http://www.freepascal.org/docs-html/rtl/system/addexitproc.html does it work even if there's an untrapped exception? Just try it -- View this

Re: [fpc-pascal] exitproc?

2014-08-05 Thread waldo kitty
On 8/5/2014 3:29 AM, Tomas Hajny wrote: On Tue, August 5, 2014 02:00, waldo kitty wrote: back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this

Re: [fpc-pascal] exitproc?

2014-08-05 Thread waldo kitty
On 8/5/2014 12:51 PM, leledumbo wrote: is this still able to be done easily? No difference I guess: http://www.freepascal.org/docs-html/rtl/system/exitproc.html However, this is better: http://www.freepascal.org/docs-html/rtl/system/addexitproc.html thanks for the pointers! i was extremely

[fpc-pascal] exitproc?

2014-08-04 Thread waldo kitty
back in the [g]?olden days of TP6, i used to be able to set an exitproc procedure that would be executed any time my program exited for any reason... something like exitproc := @myexitproc; is this still able to be done easily? does it work even if there's an untrapped exception? --

[fpc-pascal] ExitProc

2006-06-29 Thread Carsten Bager
If I compile and run my example program and then press Crtl+C the program terminates. I would expect that it terminate by calling CloseServer procedure, but it dos not. If the program terminates normally (time runs out) the CloseServer procedure is called as expected. Have I misunderstood

Re: [fpc-pascal] ExitProc

2006-06-29 Thread Jonas Maebe
On 29 jun 2006, at 13:51, Carsten Bager wrote: If I compile and run my example program and then press Crtl+C the program terminates. I would expect that it terminate by calling CloseServer procedure, but it dos not. If the program terminates normally (time runs out) the CloseServer procedure

Re: [fpc-pascal] ExitProc

2006-06-29 Thread Michael Van Canneyt
On Thu, 29 Jun 2006, Jonas Maebe wrote: On 29 jun 2006, at 13:51, Carsten Bager wrote: If I compile and run my example program and then press Crtl+C the program terminates. I would expect that it terminate by calling CloseServer procedure, but it dos not. If the program terminates normally

Re: [fpc-pascal] ExitProc

2006-06-29 Thread Tomas Hajny
Michael Van Canneyt wrote: On Thu, 29 Jun 2006, Jonas Maebe wrote: On 29 jun 2006, at 13:51, Carsten Bager wrote: If I compile and run my example program and then press Crtl+C the program terminates. I would expect that it terminate by calling CloseServer procedure, but it dos not. If the