Mapscript CSharp (C#) Memory Leak?

Tamas Szekeres szekerest at GMAIL.COM
Thu Jul 13 15:58:23 EDT 2006


David,

 

Would you file a bug report (mapscript C#) with this issue and i will look
into it as soon as possible.

 

Thanks,

 

Tamas

 

   _____  

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of David Lowther
Sent: Thursday, July 13, 2006 6:13 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak?

 

Hello All,

 

I’ve been toying with the mapscript_csharp.dll in VS2005 and cannot even
begin to tell you how thrilled I am to have it. Thanks SO much. 

 

I’ve encountered what I think might be a memory leak.

 

The exception text that I get is below and the entire source code of the
application is available at: HYPERLINK
"http://www.coordinatesolutions.com/download/mapservertestvb.zip"http://www.
coordinatesolutions.com/download/mapservertestvb.zip

 

I get the exception after choosing ID from the drop down and clicking the
map 15 times (why 15, I have no idea). When running the code from VS2005 the
exception occurs at different places.

 

Any ideas? 

 

David Lowther 

 

Coordinate Solutions, Inc.

501 N.E. 15th Street

Oklahoma City, OK 73104

405.246.9396 (Voice)

405.227.0781 (Fax)

www.coordinatesolutions.com

 

See the end of this message for details on invoking 

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.

   at mapscriptPINVOKE.new_pointObj(Double jarg1, Double jarg2, Double
jarg3, Double jarg4)

   at pointObj..ctor(Double x, Double y, Double z, Double m)

   at MapserverTestVB.Form1.Pixel2Geo(pointObj pt) in
D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 188

   at MapserverTestVB.Form1.ID(pointObj ClickPt) in
D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 109

   at MapserverTestVB.Form1.PictureBox1_MouseUp(Object sender,
MouseEventArgs e) in
D:\Develop\MapserverTestVB\MapserverTestVB\Form1.vb:line 97

   at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)

   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

MapserverTestVB

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase:
file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/MapserverTestVB
.exe

----------------------------------------

Microsoft.VisualBasic

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f
11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System
.dll

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561
934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3
a/System.Drawing.dll

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f1
1d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/Sy
stem.Xml.dll

----------------------------------------

System.Runtime.Remoting

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.42 (RTM.050727-4200)

    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c
561934e089/System.Runtime.Remoting.dll

----------------------------------------

mapscript_csharp

    Assembly Version: 0.0.0.0

    Win32 Version: 0.0.0.0

    CodeBase:
file:///D:/Develop/MapserverTestVB/MapserverTestVB/bin/Debug/mapscript_cshar
p.DLL

----------------------------------------

 

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this

application or computer (machine.config) must have the

jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging

enabled.

 

For example:

 

<configuration>

    <system.windows.forms jitDebugging="true" />

</configuration>

 

When JIT debugging is enabled, any unhandled exception

will be sent to the JIT debugger registered on the computer

rather than be handled by this dialog box.

 

 

 

 

 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 2006.07.13.



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 2006.07.13.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060713/8ba6ccc3/attachment.html


More information about the mapserver-users mailing list