[omniORB] load dll and free dll error
zhuxyzabc@21cn.com
zhuxyzabc@21cn.com
Mon, 9 Apr 2001 22:59:48 +0800 (CST)
Dear sir,
I load omnithread2_rt.dll and free it many times. But there is error.
int main(int argc, char* argv[])
{
HINSTANCE hEcho;
for ( int j=0 ; j< 100; j++)
{
hEcho = ::LoadLibrary( "omniorb280_rt.dll");
if ( hEcho )
{
cout << j << "," << hEcho << endl;
::FreeLibrary( hEcho );
}
else
{
//when j == 72, error occur
//error code=1144 (DLL init error)
cout<< GetLastError()<< endl;
}
}
return 0;
}
what's wrong with it?
thanks
zhu zhong hua
----------------------------------------------
欢迎使用 21CN 电子邮件系统 http://www.21cn.com
Thank you for using 21cn.com Email system