Michael Van Canneyt пишет:
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: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. ------------------------------------------------------------------------------------------------------------------------ [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. |
- Re: [lazarus] A question on Exception.Create(...); Burkhard Carstens
- Re: [lazarus] A question on Exception.Create(...)... Alex Smirnov
- Re: [lazarus] A question on Exception.Create(...)... Alex Smirnov
- Re: [lazarus] A question on Exception.Create(...)... Michael Van Canneyt
- Re: [lazarus] A question on Exception.Create(... Alex Smirnov
- Re: [lazarus] A question on Exception.Cre... Michael Van Canneyt
- Re: [lazarus] A question on Exception... Alex Smirnov
- Re: [lazarus] A question on Exce... Vincent Snijders
- Re: [lazarus] A question on Exce... Michael Van Canneyt
