BCB compatibility

delphi package - automated exception handling
Post Reply
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

BCB compatibility

Post by DPerkins »

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

TIA

David
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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.
DPerkins
Posts: 9
Joined: Thu May 20, 2004 10:58 am

Post by DPerkins »

Thanks for clarifying that, I'll give it a try.
Post Reply