Mega Code Archive

 
Categories / Delphi / Strings
 

Access violation when calling a non-delphi vcl created dll

Question: Access violation in Delphi IDE when calling a C/C++/Delphi BDE API DLL: How do I resolve this access violation? Answer: There is a BDE API function called DbiDllExit which can be prototyped the same as DbiExit. Place the prototype in your idapi.h (C / C++) and call DbiDllExit just before DbiExit. For Delphi, simply call DbiDllExit before DbiExit.