MapScript, C#, delete_classObj exception
Tamas Szekeres
szekerest at GMAIL.COM
Thu Sep 14 09:06:20 EDT 2006
Johan,
I guess you've run into the same problem that were identified recently
and handled for the upcoming 4.10 release. I should see how you create
the inline objects, but in advance I can say you should avoid
creating classObj and shapeObj from scratch. These objects are already
created when you create a layer. You should just use the reference and
set the properties on that reference. It must be noted that some of
the interface members (like layerObj.class) will not be settable in
the future.
And also make sure you are not passing mapscript objects between
multiple threads.
Best Regards,
Tamas Szekeres
On 9/14/06, Hallgren Johan E <jhhal at wmdata.com> wrote:
> Hello
>
>
>
> I use the 4.8.4 release of MapServer and I'm using csharp/Mapscript
> option. The problem is that I could run a sequence of calls with no
> problems and I can do it a number of times but suddenly I have problems.
>
>
>
>
> The special things I do is that:
>
> * I use the same mapObj several times, in the same process, for
> servral requests.
>
> * I create inline features dynamically.
>
> * I create layers for inline features dynamically.
>
> * I create classes for those dynamically.
>
>
>
> After the image is created, I tries to clean up (restore) the stage to
> how it was before the request. That where I have problems, in some
> cases.
>
>
>
> In my log file I can read:
>
>
>
> 2006-04-12 20:23:44 mapscript_csharp
>
> Object reference not set to an instance of an object.
>
>
>
> at mapscriptPINVOKE.delete_classObj(HandleRef jarg1)
>
> at classObj.Dispose()
>
> at classObj.Finalize()
>
>
>
> It's really all I can say for the moment. After restarting the process
> it runs thru as it should, no problems with cleaning up.
>
>
>
> Any clues?
>
>
>
> /Johan
>
>
> ___________________________________
>
>
> Johan Hallgren
>
>
>
>
> WM-data
>
> Pelle Bergs backe 3
>
> Box 1938, 791 19 Falun
>
> Tel (och mobil): 023-547 46 (int: +46-2354746)
>
> johan.e.hallgren at wmdata.com
> <BLOCKED::mailto:johan.e.hallgren at wmdata.com>
>
> http://www.wmdata.se
> <BLOCKED::/exchweb/bin/redir.asp?URL=http://www.wmdata.se/>
>
>
>
>
>
More information about the mapserver-dev
mailing list