Problems using Exitpr 
Author Message
 Problems using Exitpr

-=[ Kim Forwood was heard to say... ]=-

 In> Dear fellow TP (7.0)-programmers,

 In> program kill_the_stack;

 In> This compiles just fine (barring typing errors) and with a suitably
 In> large value of i causes a runtime error 202. However, I never see my
 In> own '{*filter*}!' error message except on a normal termination. When there
 In> is a stack overflow error, I only see the TPs error message. The error
 In> address points to the beginning of the routine 'own_exit'. What am I
 In> doing wrong? Any ideas/help is much appreciated. Thanks in advance,

 In> Jyrki

 KF> You need to check ExitCode and ErrorAddr in your exit procedure, and
 KF> only do your exit stuff if ErrorAddr is not Nil. If you also check
 KF> ExitCode then it will tell you whether your program terminated normally
 KF> or not (0 = not normal).

OOPS!!! My mistake! If ExitCode does NOT equal 0 then the program did not
terminate normally.


  %               http://www.*-*-*.com/ ~kforwood/              $
  $         For what purpose is life, if one cannot live freely?         %
        WARNING: Flames and adverti{*filter*}ts sent to my email address
              may result in 20 gigabytes of garbage returned!

___ Blue Wave/QWK v2.20

Wed, 18 Jun 1902 08:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Problems using Exitpr

2. problem to solve using numbers in delphi (using Val() and FloatToStrF() )

3. dbExpress and TSQLDataSet sync problem using DataSource property.

4. Problems with connection using ADO

5. Problem using InfoPower with Queries

6. Problem using Btrieve for Win95 and Delphi 2.0

7. Problems using component TUpdateMulti

8. Problem with Transactions using Delphi1+MS-SQL SERVER

9. Using TUpdateQuery, problems with parameters

10. problem using findNearest/gotoNearest

11. Urgent problem with creating dBase tables using SQL

12. Problem using TTable with an Ascii file source


Powered by phpBB® Forum Software