Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 May : Application terminates with no exception raised

www.cryer.info
Managed Newsgroup Archive

Application terminates with no exception raised

Subject:Application terminates with no exception raised
Posted by:"David Saracini" (killthespammers@nospam.com)
Date:Wed, 25 May 2005 14:23:06

Hello All,

First off - I'm not sure if this is the correct group to post this
question on, but this group seems to be about the most technical, so I'm
  trying it here <g>.

BACKGROUND:

I have an application where the reports are stored in DLLs.  The only
thing that is getting passed to the DLLs is:

   const ReportHistoryID: Integer;
   Configure: Boolean;
   UserActivated: Boolean;
   var ReportParameter: string;
   UserName: string;
   Password: string;
   LogFileName: string;
   AOwner: TComponent;
   ApplicationHandle: THandle;
   var sError: string

Note: here is the top of the uses section:

uses
   ShareMem,

So - sharemem is getting used and it is the first unit.

Second note:  Application.Handle is getting set back to zero when the
library unloads.

PROBLEM:

*occasionally* the application will just disappear - POOF! GONE! Out
like a fat kid playing dodge ball <g>.  It doesn't raise an error.  Nor
does it get to the finally block in the dpr.  The log file looks the
same as it does if I go to task manager and kill it.  It just stops
processing and goes away.

Note: this seems to only happen when the application is NOT being run
inside of the Delphi IDE (ie. Debug mode)

QUESTION:

What might make an application do this?  I can't even think of or find a
scenario where this would happen.


ENVIRONMENT INFO:

OS: XP
Delphi 7
Database: Advantage 7.1
Processor: Intel (has happened on both Pentium and Celeron chips)


Thanks in advance...

David

Replies:

www.cryer.info
Managed Newsgroup Archive