<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Mark,<br>
    For technical queries about an application like mapserver, you will
    be best to email the mapserver email list who are much more likely
    to have targeted knowledge about your problem.<br>
    <br>
    On 06/05/11 15:43, Mark Sharman wrote:
    <blockquote
      cite="mid:003101cc0bb0$98f8e5e0$caeab1a0$@sharman@mapdataservices.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">To whom it may concern,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">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&#8217;t remember that precisely). It&#8217;s a bit
            weird. The system is multi-threading 32bit windows based. If
            someone can assist it would great.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I am using version 5.6.3
            of Mapserver <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The call:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span>
            mapname <span style="color: blue;">As</span> <span
              style="color: blue;">String</span> = _mbr.MapFilePath + <span
              style="color: rgb(163, 21, 21);">"\"</span> +
            _mbr.Zoom.ToString().PadLeft(2, <span style="color: rgb(43,
              145, 175);">Convert</span>.ToChar(<span style="color:
              rgb(163, 21, 21);">"0"</span>)) &amp; <span style="color:
              rgb(163, 21, 21);">".map"</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span>
            MSMap <span style="color: blue;">As</span> <span
              style="color: rgb(43, 145, 175);">mapObj</span> = <span
              style="color: blue;">Nothing<o:p></o:p></span></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Try</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MSMap = <span
              style="color: blue;">New</span> <span style="color:
              rgb(43, 145, 175);">mapObj</span>(mapname)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Catch</span>
            ex <span style="color: blue;">As</span> <span
              style="color: rgb(43, 145, 175);">Exception</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _logger.Error(ex)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:
              green;">' this will be caught by the caller</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:
              blue;">Throw</span> ex<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color:
              green;">'Return False</span><o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 9.5pt;
            font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">End</span>
            <span style="color: blue;">Try<o:p></o:p></span></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Sorry this is all I
            have, for some reason the log4net Error(exception) call is
            not writing to the log file:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Event
            Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Event
            Source:&nbsp;&nbsp;&nbsp; .NET Runtime<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Event
            Category: None<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Event
            ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1026<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            6/05/2011<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Time:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            2:25:40 PM<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">User:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            N/A<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Computer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            MDS-TILEGEN03<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Description:<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Application:
            TileGenV2MSConsole.exe<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Framework
            Version: v4.0.30319<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Description:
            The process was terminated due to an unhandled exception.<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Exception
            Info: System.AccessViolationException<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Stack:<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(System.String)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at OSGeo.MapServer.mapObj..ctor(System.String)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            TileGenAssembly.MapServerRenderer.ProcessMBRRow(TileGenAssembly.ConfigurationDataContext,
            System.Object ByRef, System.DateTime, Int64 ByRef, Int64
            ByRef, Int64 ByRef)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            TileGenAssembly.MapServerRenderer.GenerateTilesFromMBR(Int32)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at TileGenAssembly.MapServerGenerateThread.Start()<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            System.Threading.ThreadHelper.ThreadStart_Context(System.Object)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
            System.Threading.ContextCallback, System.Object, Boolean)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at
            System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,
            System.Threading.ContextCallback, System.Object)<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">&nbsp;&nbsp;
            at System.Threading.ThreadHelper.ThreadStart()<o:p></o:p></span></p>
        <p class="MsoNormal" style=""><span style="font-size: 10pt;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;;">Regards</span><span
            lang="EN-US"><o:p></o:p></span></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Aust-NZ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Aust-NZ@lists.osgeo.org">Aust-NZ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/aust-nz">http://lists.osgeo.org/mailman/listinfo/aust-nz</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Cameron Shorter
Geospatial Director
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254

Think Globally, Fix Locally
Geospatial Solutions enhanced with Open Standards and Open Source
<a class="moz-txt-link-freetext" href="http://www.lisasoft.com">http://www.lisasoft.com</a>
</pre>
  </body>
</html>