Mega Code Archive

 
Categories / Delphi / ADO Database
 

Bde 4 51 causes application error

Question: when building a program that interacts with MS Access using the BDE 4.51 and C++Builder, I find that programs I run under the debugger crash with an exception. The programs work fine when run from windows, and I can access the data fine at designtime. What is happening? Answer: The DAO, like the VCL, uses exceptions internally to propogate information and control structures. The C++Builder debugger is designed so as to trigger a user interrupt when a certain number of internal exceptions have been tracked. That interrupt causes the exception message to appear. The program being debugged has not crashed, and it is perfectly reasonable to resume execution without doing anything other than clicking on the exception message box. The interruption is only intended to serve as a notification about what is happening behind the scenes.