External Exception EEFFACE in Delphi

前端 未结 5 1553
萌比男神i
萌比男神i 2021-01-07 18:23

While debugging my application with Delphi 2009, I sometimes get the following exception occurring:


(source: beholdgenealogy.com)

This only

5条回答
  •  情歌与酒
    2021-01-07 18:40

    Recently I've run into this and it's somehow related to the Delphi IDE. The following code ends up in this exception on the ShellExecute line:

    url:='https://translate.google.com/#hu/en/%C3%A1';
    ShellExecute(0,PChar('open'),PChar(url),nil,nil,SW_SHOWNORMAL);
    

    But this is not:

    url:='https://translate.google.com/#hu/en/%C3%A1';
    ShowMessage(url);    
    ShellExecute(0,PChar('open'),PChar(url),nil,nil,SW_SHOWNORMAL);
    

    But if I run my app outside of IDE everything is fine without the ShowMessage extra line. I don't know if it helps, but maybe in other cases where debugging is needed maybe this "trick" could help.

    System: DELL Optiplex, intel Core2Duo, Win7 x64, Delphi 7

提交回复
热议问题