Opened 17 years ago

Closed 17 years ago

#2280 closed defect (fixed)

CSharp MapScript fails at runtime when compiled with AGG support

Reported by: mgleahy Owned by: tamas
Priority: normal Milestone: 5.0 release
Component: MapScript-C# Version: 5.0
Severity: normal Keywords: agg csharp mapscript
Cc:

Description

If --with-agg=/usr is included in my mapserver configure options, then I will output the following error when I try to run my CSharp application:

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OSGeo.MapServer.mapscriptPINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: libmapscript.so

at (wrapper managed-to-native) SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_mapscript (OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate) at OSGeo.MapServer.mapscriptPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method> at OSGeo.MapServer.mapscriptPINVOKE..cctor () [0x00000] --- End of inner exception stack trace ---

at <0x00000> <unknown method> at OSGeo.MapServer.mapObj..ctor (System.String filename) [0x00000] at PG2Sgtk.frmMain..ctor () [0x00000] at PG2Sgtk.frmMain.Main (System.String[] args) [0x00000]

Change History (4)

comment:1 by sdlime, 17 years ago

Component: MapServer C LibraryMapScript-C#
Owner: changed from sdlime to tamas

comment:2 by tamas, 17 years ago

Committed the fix in the trunk (r6753)

comment:3 by mgleahy, 17 years ago

I just tested it this, and it works great here.

comment:4 by tamas, 17 years ago

Milestone: 5.0 release
Resolution: fixed
Status: newclosed

Cool, closing the ticket then.

Note: See TracTickets for help on using tickets.