Page 1 of 1

BCB compatibility

Posted: Thu May 20, 2004 11:00 am
by DPerkins
Does MadExcept work equally well with BCBv5? I vaguely remember reading that BCB's call stack wasn't displayed.



Posted: Thu May 20, 2004 5:40 pm
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.

Posted: Fri May 21, 2004 11:49 am
by DPerkins
Thanks for clarifying that, I'll give it a try.