Same DLL crashes when invoked from a program built with a different VC version

  • Thread starter Thread starter Zappo1980
  • Start date Start date
Z

Zappo1980

Guest
Hi all,

I have a program that invokes an external DLL. I do not have the source code to this DLL.

Im using VS2012 to build this program, and I can use the v110 toolset (VS2012), the v100 toolset (VS2010), or the v90 toolset (VS2008).

I find that when I build using v110 or v100 and run on Windows 7, the program sometimes crashes inside a DLL call. Ive tried putting the call inside a try/catch(...), but nothing changed.

If I run on Windows XP, the program works. If I build with v90, then the program works even on Windows 7. Also, there are other calls in that DLL which work regardless, and even the affected call usually works.

I cant keep using v90 forever. And I cant debug into the DLL to figure out whats going on. I can contact the guys who developed the DLL, but theyll just blame the compiler and not lift a finger. Help?

What on Earth could cause the same DLL to fail or not, depending on which VS version was used to build the caller program? It doesnt make sense to me...

Continue reading...
 
Back
Top