Thanks Tamas! I checked the MS4W page (I'm not compiling myself) and it doesn't look like it has been updated to 4.8.4. Does anyone know the schedule for the update?
Thanks, David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Tamas Szekeres Sent: Saturday, July 15, 2006 6:22 PM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] Mapscript CSharp (C#) Memory Leak? David, I have been testing your project and found the similar problems with your mapscript binaries, however found no problem using the CVS-HEAD mapscript binaries. This issue may be dedicated to the following bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1743 was also fixed in the current (4.8.4) release. Best Regards, Tamas Szekeres 2006/7/13, David Lowther <[EMAIL PROTECTED]>: > > > > > 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. > > 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. > > > > > > > > > >
