I'm trying to run the Visual C 6 example in a VS2008 C++ environment.
Every time the code encounters a first chance exception ("An invalid handle was specified") when calling "ReleaseDriver()". It seems that something happens when the "FreeLibrary(HwndDriver)" try to unload the DLL file.
So I test a simple win32 console:
#include "stdafx.h"
#include "VxmDriver.h"
int _tmain(int argc, _TCHAR* argv[])
{
HINSTANCE HwndDriver = LoadLibrary("VxmDriver.dll");
FreeLibrary(HwndDriver);
return 0;
}
#######################
But the code throws the same exception when calling FreeLibrary to unload DLL as well.
Is there a way to solve this problem?
Thanks!
HwndDriver = LoadLibrary("VxmDriver.dll"); ???
Subject: | Get first chance exception when calling ReleaseDriver() |
---|---|
Date: | Tue, 23 Sep 2014 12:43:47 -0700 (PDT) |
From: | zwi...@gmail.com |
Reply-To: | velmex-...@googlegroups.com |
To: | velmex-...@googlegroups.com |
Hi, I'm trying to run the Visual C 6 example in a VS2008 C++ environment. Every time the code encounters a first chance exception ("An invalid handle was specified") when calling "ReleaseDriver()". It seems that something happens when the "FreeLibrary(HwndDriver)" try to unload the DLL file. So I test a simple win32 console: #include "stdafx.h" #include "VxmDriver.h" int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE HwndDriver = LoadLibrary("VxmDriver.dll"); FreeLibrary(HwndDriver); return 0; } ####################### But the code throws the same exception when calling FreeLibrary to unload DLL as well. Is there a way to solve this problem? Thanks! -- You received this message because you are subscribed to the Google Groups "Velmex Controls" group. To unsubscribe from this group and stop receiving emails from it, send an email to velmex-contro...@googlegroups.com. To post to this group, send email to velmex-...@googlegroups.com. Visit this group at http://groups.google.com/group/velmex-controls. For more options, visit https://groups.google.com/d/optout.