Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Access Violatio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 186 of 212
Post > Topic >>

Access Violation by calling function in dll

by sandraexner@[EMAIL PROTECTED] (Sandra) Jan 23, 2005 at 07:45 AM

Hello,
who can help me ???
I develop an application for PocketPC 2003 with eMbedded Visual C++
4.0 and  use a dll, which e.c. has an function to open maps (*.shp)
and Orthophotos (georeferenced JPGs).
While testing the application, I saw, that there is a problem by
opening JPGs. The debugger shows the following message:

First-change exception in <meineAnwendung>.exe: 0xC0000005: Acess
Violation

The exception comes, when the function in the dll is called:

bool CGeoPADCtrl::GeoPAD1(BSTR filePath) 
{
	bool (PASCAL *fun1)(BSTR FilePath);
	//GetProgAddress gets Adress of the function in the dll
	(FARPROC&)fun1 = GetProcAddress(hInstasnce,_T("GeoPAD1"));
	
	if(fun1)
		//calles the function
		return fun1(filePath);	 <-- here occurs the exception 
	
	return false;
}

Can anybody say me, what's the reason for such an exception ???
Is the error in the dll, and if yes, how could I repair it ???

Please give me your soon answer, I'm happy about every answer !!!!

Sandra




 1 Posts in Topic:
Access Violation by calling function in dll
sandraexner@[EMAIL PROTEC  2005-01-23 07:45:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 8:02:08 CDT 2008.