|
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:[EMAIL PROTECTED] On Behalf Of David Lowther 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: 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. 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__b03f5f7f11d50a3a/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__b77a5c561934e089/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__b03f5f7f11d50a3a/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__b03f5f7f11d50a3a/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/System.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__b77a5c561934e089/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_csharp.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. -- -- |
- [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? David Lowther
- [UMN_MAPSERVER-USERS] Map Projections Ryan Ollerenshaw
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memo... Tamas Szekeres
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memo... Tamas Szekeres
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) ... David Lowther
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (... Tamas Szekeres
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memo... Tamas Szekeres
- [UMN_MAPSERVER-USERS] Projection support is not ... Ryan Ollerenshaw
- Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) ... David Lowther
