by tomasofen » Jun 9, 2005 @ 10:44am 
			
			mmmmm....
Nobody else has the same problem than me?
I have been testing it in source code, and it gaves me this error message:
An unhandled exception of type 'System.Exception' occurred in GapiDrawNet.dll
Additional information: Error 80070057: Unknown
I trace the code, and i see that the error shows in the following point:
Proyect: GapiDrawNet (I use the SourceCode for this dll)
Module: GapiUtility.cs
Function: RaiseExceptionOnError()
The source code at this point is:
public static void RaiseExceptionOnError(UInt32 hResult)
{
  if(hResult ==  (UInt32)GapiResults.GD_OK){ return;}
  string ErrorMessage = GetErrorMessage(hResult);
			
  throw new Exception("Error " + hResult.ToString("X") + ": " + ErrorMessage);
}
As far as i can understood, this exception is called while trying to free something of the GapiDisplay:
GapiDisplay.cs --> Dispose()
	|
	|---GapiUtility.cs --> RaiseExceptionOnError()
override public void Dispose()
{
  IntPtr display = unmanagedGapiObject;
  unmanagedGapiObject = IntPtr.Zero;
  GdNet.CGapiDisplay_Destroy(display);  //<- It fails at this point, i think, that is where the exception is raised...
}
Any idea about this? I supose this is not dued to the source code version i have, becouse it neither work in the copiled demos i tried.
Hope anyone can help.
Tomás.