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"
:-)

Regards.

Reply via email to