Page 1 of 1

Error message while exiting GapiDraw.Net Demos in PocketPC

PostPosted: Jun 8, 2005 @ 9:37am
by tomasofen
Hello

I have copy the Demo applications that comes with the GapiDraw.Net kit (the ones in the \Demo\Arm directory), and i have the same problem in all of them when exiting.

The applications runs ok, but when i exit from any of them it gives me an error message like the following:

Excepcion administrada en
GapiDisplay::Dispose+0x19

Error 80070057 Unknown
GapiDisplay::Dispose+0x19
GapiApplication::CloseDisplay+0x13
GapiApplication::ShutDownAfterRun+0x06
GapiApplication::Run0x60
mfcApplication::Main0x17

Aceptar para terminar



I have an "Acer n-10" PDA. Does it happens to someone? Can this be fixed?

Thanks in advance,

Tomás.

PostPosted: Jun 9, 2005 @ 10:44am
by tomasofen
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.