[Aust-NZ] exception OSGeo.MapServer ... at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(System.String)
Mark Sharman
mark.sharman at mapdataservices.com
Thu May 5 22:43:59 PDT 2011
To whom it may concern,
I am experiencing a number of intermittent exceptions in an application that
generates mapping tiles. Generally the system runs very well .. occasionally
we get exceptions the one below and a memory violation (sorry don't remember
that precisely). It's a bit weird. The system is multi-threading 32bit
windows based. If someone can assist it would great.
I am using version 5.6.3 of Mapserver
The call:
Dim mapname As String = _mbr.MapFilePath + "\" +
_mbr.Zoom.ToString().PadLeft(2, Convert.ToChar("0")) & ".map"
Dim MSMap As mapObj = Nothing
Try
MSMap = New mapObj(mapname)
Catch ex As Exception
_logger.Error(ex)
' this will be caught by the caller
Throw ex
'Return False
End Try
Sorry this is all I have, for some reason the log4net Error(exception) call
is not writing to the log file:
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1026
Date: 6/05/2011
Time: 2:25:40 PM
User: N/A
Computer: MDS-TILEGEN03
Description:
Application: TileGenV2MSConsole.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(System.String)
at OSGeo.MapServer.mapObj..ctor(System.String)
at
TileGenAssembly.MapServerRenderer.ProcessMBRRow(TileGenAssembly.Configuratio
nDataContext, System.Object ByRef, System.DateTime, Int64 ByRef, Int64
ByRef, Int64 ByRef)
at TileGenAssembly.MapServerRenderer.GenerateTilesFromMBR(Int32)
at TileGenAssembly.MapServerGenerateThread.Start()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object, Boolean)
at
System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/oceania/attachments/20110506/81b78b09/attachment.html>
More information about the Oceania
mailing list