On Fri, 20 Oct 2006, Alex Smirnov wrote:
> Michael Van Canneyt ?????:
> > The message is shown on the console. The SysUtils unit is cross platform,
> > so it does not 'know' how to display a dialog box, even on Windows.
> >
> > If you run your program on the console (command-prompt) (and it is compiled
> > on as a console app, the default) then you will
> > see the message printed on the console.
> >
> > Inside the IDE, the debugger catches the exception and shows the window.
> >
> > Michael.
> >
> No, it is not. I have tested it now - simply moving the file that should be
> open by a program to another directory. Now I am working in Linux/Gnome./ /So
> - I have received:
> /------------------------------------------------------------------------------------------------------------------------
> [FORMS.PP] ExceptionOccurred
> Sender=EAccessViolation
> Exception=Access violation
> Stack trace:
> $08185F79 of OpticaWS.lpr
> $080565AA TCUSTOMFORM__DODESTROY, line 645 of ./include/customform.inc
> $080554B2 TCUSTOMFORM__BEFOREDESTRUCTION, line 97 of
> ./include/customform.inc
> $080554EE TCUSTOMFORM__DESTROY, line 111 of ./include/customform.inc
> $08057C54 TCUSTOMFORM__CREATE, line 1305 of ./include/customform.inc
> $0805DBFE TAPPLICATION__CREATEFORM, line 1527 of
> ./include/application.inc
> $0817E427 main, line 14 of OpticaWS.lpr
> TApplication.HandleException Access violation
> Stack trace:
> $08185F79 of OpticaWS.lpr
> $080565AA TCUSTOMFORM__DODESTROY, line 645 of ./include/customform.inc
> $080554B2 TCUSTOMFORM__BEFOREDESTRUCTION, line 97 of
> ./include/customform.inc
> $080554EE TCUSTOMFORM__DESTROY, line 111 of ./include/customform.inc
> $08057C54 TCUSTOMFORM__CREATE, line 1305 of ./include/customform.inc
> $0805DBFE TAPPLICATION__CREATEFORM, line 1527 of
> ./include/application.inc
> $0817E427 main, line 14 of OpticaWS.lpr
> [FORMS.PP] ExceptionOccurred
> [FORMS.PP] ExceptionOccurred
> //------------------------------------------------------------------------------------------------------------------------/
> on console. And a POPUP WINDOW with Access violation exception in it. /
> /
> So - no "File ... not exist" exception (and it does exist in my code!), no
> console output and a popup window with "Access violation exception/"
> :-)
This is because a SECOND exception is raised somewhere which hides your first
exception. It means there is a place where you do not take into account that
an exception may occur ?
(or there is an error in the Lazarus exception handling routines)
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives