Re: Possible problem calling DLL functions in Windows 7
Posted: Thu Nov 08, 2012 1:20 pm
The API only example by Danilo crash here too, but again moving the
filename$="text.xxg"
DeleteFile_(filename$)
before the
vx.l=LoadLibrary_("vfile.dll")
makes all work again.
Then ask him for a "debug" (with the asserts) and a "release" version.
With debug I mean a release version with the asserts, not a debug build with debug code inside and the asserts.
filename$="text.xxg"
DeleteFile_(filename$)
before the
vx.l=LoadLibrary_("vfile.dll")
makes all work again.
See if you can convince him to put some ASSERT macros in the code to test for pointers validity, system functions return values and so on. I'm convinced this will help immensely to catch the problem quickly, if the asserts are positioned properly.DeanH wrote:I'll ask the guy who wrote it if he could recompile it.
Then ask him for a "debug" (with the asserts) and a "release" version.
With debug I mean a release version with the asserts, not a debug build with debug code inside and the asserts.