1
votes

I have used some 3rd party DLL (precisely: TRMPRO.DLL - i.e. Tsunami Record Manager - compiled with PowerBASIC in 2005) for many years with my application compiled with Visual C++ 2008 and it has been working OK, also in Windows 10, but when I am trying to load (with LoadLibrary function) this DLL from the same application recompiled with Visual C++ 2019, it causes an access violation, exception thrown. The DLL rather does not depend on Visual C++ runtime, so I can't see any reason of such a behavior. Is LoadLibrary function working differently with the newer Visual C++ runtime? Any other ideas? The application and, of course, TRMPRO.DLL are 32-bit.

1

1 Answers

0
votes

I actually worked w/ J on this via email. The solution is to turn off DEP protection. From J's email:

The automatic project conversion from MSVC 2008 to MSVC 2019 doesn't set the /NXCOMPAT option, and the unset option means prevention is on.