Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

Debug version 3rd party DLL with STL (BentleyMap SS4, NativeCode MDL, C++)

$
0
0

Hi!

I am very unfamiliar with C++ linker and buider options and preparing the environment for developing Microstation API. Using the guides available online I managed to get over most of the difficulties, but now I'm stucked. I have run-time issues when I try to use some 3rd party Debug version DLL (using STL) linked to my Debug version code running in Bentley Map (SS4). Switching to Release, it is working fine so far. I set the following preprocessor definitions in my project MKE as well as in the VS project settings of 3rd party library according to LA Solutions / Create a MicroStation MDL Application with Visual Studio / Preprocessor Definitions (http://www.la-solutions.co.uk/content/MDL/MdlDll.htm#Preprocessor):

_SECURE_SCL_THROWS=1
_SECURE_SCL=0

In MKE, I added the above lines in the # Define macros... section after the DLM_... definitions and checked the output of debug process for -D_SECURE_SCL_THROWS=1 and -D_SECURE_SCL=0. However, Bentley Map still crashes (Access Violation) using Debug DLL... In the exception files, various std:: calls can be found on top of the "MDL call stack" section, e.g. std::char_traits<char>::_Copy.

Debugging works fine without the library using STL, and I badly need it for developing. Please help me, thank you in advance!

Regards,

DG


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>