Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: C++ builder XE6 crashing with message application-defined exception


This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 6 - Last Post: Jan 18, 2017 12:58 PM Last Post By: Remy Lebeau (Te...
Dev Yadav

Posts: 8
Registered: 10/20/16
C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 9, 2017 7:50 AM
I have an application when debugging it with IDE (C++ builder XE6) it is crashing with error message "application.exe faulted with message: 'application-defined exception (code 0x0eedfade) at 0x7694db18'. Process stopped. Use step or run to continue".

Same EXE runs fine if double click or ran as without debugging. Any help is appreciated.
Alex Belo

Posts: 626
Registered: 10/8/06
Re: C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 9, 2017 8:08 AM   in response to: Dev Yadav in response to: Dev Yadav
Dev Yadav wrote:

I have an application when debugging it with IDE (C++ builder XE6) it
is crashing with error message "application.exe faulted with message:
'application-defined exception (code 0x0eedfade) at 0x7694db18'.
Process stopped. Use step or run to continue".

Same EXE runs fine if double click or ran as without debugging. Any
help is appreciated.

I have similar problem in CB2007 on Win7 after invoking (or even
closing) of file dialog (I never saw this on XP). It looks like one of
explorer extentions throws an exception which is catched in "system"
code. The exception is not visible during normal execution but debugger
stops on it. I just press F9 to continue... Quite annoying but I can
live with it.

--
Alex
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: C++ builder XE6 crashing with message application-defined exception
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 9, 2017 9:09 AM   in response to: Dev Yadav in response to: Dev Yadav
Dev wrote:

I have an application when debugging it with IDE (C++ builder XE6)
it is crashing with error message "application.exe faulted with message:
'application-defined exception (code 0x0eedfade) at 0x7694db18'.
Process stopped. Use step or run to continue".

0x0eedfade is the exception code used for Delphi exceptions derived from
Sysutils::Exception.

Same EXE runs fine if double click or ran as without debugging.

Then don't worry about it. Your app is already handling the exception.
Remember, the debugger sees exceptions before your app does. You are seeing
a popup message for a "first-catch" exception, which allows the debugger
to decide what to do with it. If you press F9, or the Run button, the debugger
will pass the exception back to the app for normal handling.

--
Remy Lebeau (TeamB)
Dev Yadav

Posts: 8
Registered: 10/20/16
Re: C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 10, 2017 8:08 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Hi Remy,
Thanks for your reply. Once I press OK and press F9 to continue Application would give another exception "stack overflow at 0xa72f8be0" process stopped.
These all exceptions are coming only when debugging with IDE.
Few days back same application used to work with IDE and was able to debug, I changed few settings in IDE and started getting these exceptions.
I don't remember what settings I changed.

Thanks

Remy Lebeau (TeamB) wrote:
Dev wrote:

I have an application when debugging it with IDE (C++ builder XE6)
it is crashing with error message "application.exe faulted with message:
'application-defined exception (code 0x0eedfade) at 0x7694db18'.
Process stopped. Use step or run to continue".

0x0eedfade is the exception code used for Delphi exceptions derived from
Sysutils::Exception.

Same EXE runs fine if double click or ran as without debugging.

Then don't worry about it. Your app is already handling the exception.
Remember, the debugger sees exceptions before your app does. You are seeing
a popup message for a "first-catch" exception, which allows the debugger
to decide what to do with it. If you press F9, or the Run button, the debugger
will pass the exception back to the app for normal handling.

--
Remy Lebeau (TeamB)
Dev Yadav

Posts: 8
Registered: 10/20/16
Re: C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 18, 2017 8:13 AM   in response to: Dev Yadav in response to: Dev Yadav
Following is code where it is crashing. It crashes at line
h = LoadLibrary( dllName.c_str() ) ;
without debug it works fine

try
{
h = LoadLibrary( dllName.c_str() ) ;
}
catch(...) { h = NULL ;}

Dev Yadav wrote:
Hi Remy,
Thanks for your reply. Once I press OK and press F9 to continue Application would give another exception "stack overflow at 0xa72f8be0" process stopped.
These all exceptions are coming only when debugging with IDE.
Few days back same application used to work with IDE and was able to debug, I changed few settings in IDE and started getting these exceptions.
I don't remember what settings I changed.

Thanks

Remy Lebeau (TeamB) wrote:
Dev wrote:

I have an application when debugging it with IDE (C++ builder XE6)
it is crashing with error message "application.exe faulted with message:
'application-defined exception (code 0x0eedfade) at 0x7694db18'.
Process stopped. Use step or run to continue".

0x0eedfade is the exception code used for Delphi exceptions derived from
Sysutils::Exception.

Same EXE runs fine if double click or ran as without debugging.

Then don't worry about it. Your app is already handling the exception.
Remember, the debugger sees exceptions before your app does. You are seeing
a popup message for a "first-catch" exception, which allows the debugger
to decide what to do with it. If you press F9, or the Run button, the debugger
will pass the exception back to the app for normal handling.

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 18, 2017 12:58 PM   in response to: Dev Yadav in response to: Dev Yadav
Dev wrote:

Following is code where it is crashing.

That is not enough for anyone to diagnose or reproduce the problem. Please
show a more complete example. Where is dllName declared? How is it assigned?
Is it a local variable or a member of an object? In the latter case, are
you accessing it via a valid object pointer? What kind of DLL are you loading?
Did you debug into the DLL to make sure its is not crashing when loaded?

--
Remy Lebeau (TeamB)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: C++ builder XE6 crashing with message application-defined exception  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 18, 2017 12:57 PM   in response to: Dev Yadav in response to: Dev Yadav
Dev wrote:

Few days back same application used to work with IDE and was
able to debug, I changed few settings in IDE and started getting
these exceptions.

I don't remember what settings I changed.

This is the kind of thing you should be using source control for. That way
you could run a diff on the old and new files, and/or revert to the old files.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02