BCB compatibility

delphi package - automated exception handling

BCB compatibility

Postby DPerkins » Thu May 20, 2004 11:00 am

Does MadExcept work equally well with BCBv5? I vaguely remember reading that BCB's call stack wasn't displayed.

TIA

David
DPerkins
 
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Postby madshi » Thu May 20, 2004 5:40 pm

Generally madExcept does work with BCB5 and BCB6. There's one problem, though. Inside of C++ try..catch blocks the RTL function "ExceptAddr" doesn't work - it always returns NULL. As a result the stack tracing is quite poor if an exception is catched in such a try..catch block. This is a BCB bug (in both BCB5 and 6). The main situation where this problem shows through is during creation of the autocreated forms. If an exception occurs at that time, you'll not get a good stack trace, unfortunately. However, during normal program flow (e.g. what happens "inside" of Application->Run) madExcept works just fine. Also thread exceptions are usually catched just fine.

I suggest that you simply try it out. It works reasonably well. Some of my customers are using BCB + madExcept and apart from the mentioned shortcoming it works just fine for them.
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Postby DPerkins » Fri May 21, 2004 11:49 am

Thanks for clarifying that, I'll give it a try.
DPerkins
 
Posts: 9
Joined: Thu May 20, 2004 10:58 am


Return to madExcept

Who is online

Users browsing this forum: No registered users and 13 guests