[mapserver-commits] r10442 - in branches/branch-5-4/mapserver: .
mapscript/csharp
svn at osgeo.org
svn at osgeo.org
Thu Aug 5 07:47:57 EDT 2010
Author: tamas
Date: 2010-08-05 11:47:57 +0000 (Thu, 05 Aug 2010)
New Revision: 10442
Modified:
branches/branch-5-4/mapserver/HISTORY.TXT
branches/branch-5-4/mapserver/mapscript/csharp/Makefile.vc
branches/branch-5-4/mapserver/mapscript/csharp/swig_csharp_extensions.i
Log:
Ensure the class is not marked BeforeFieldInit causing memory corruption with C#/CLR4 (#3438)
Modified: branches/branch-5-4/mapserver/HISTORY.TXT
===================================================================
--- branches/branch-5-4/mapserver/HISTORY.TXT 2010-08-05 11:43:30 UTC (rev 10441)
+++ branches/branch-5-4/mapserver/HISTORY.TXT 2010-08-05 11:47:57 UTC (rev 10442)
@@ -13,6 +13,8 @@
Current Version:
----------------
+- Ensure the class is not marked BeforeFieldInit causing memory corruption with C#/CLR4 (#3438)
+
- Fixed MSSQL2008 driver returning invalid extent (#3498)
- Backport the recent fixes in the MSSQL2008 driver (#3058, #3244)
Modified: branches/branch-5-4/mapserver/mapscript/csharp/Makefile.vc
===================================================================
--- branches/branch-5-4/mapserver/mapscript/csharp/Makefile.vc 2010-08-05 11:43:30 UTC (rev 10441)
+++ branches/branch-5-4/mapserver/mapscript/csharp/Makefile.vc 2010-08-05 11:47:57 UTC (rev 10442)
@@ -48,7 +48,7 @@
!ENDIF
!IF $(MSVC_VER) >= 1600
-CSC = $(CSC) /define:CLR4 /debug:full
+CSC = $(CSC) /define:CLR4
!ENDIF
#SWIG = swig
Modified: branches/branch-5-4/mapserver/mapscript/csharp/swig_csharp_extensions.i
===================================================================
--- branches/branch-5-4/mapserver/mapscript/csharp/swig_csharp_extensions.i 2010-08-05 11:43:30 UTC (rev 10441)
+++ branches/branch-5-4/mapserver/mapscript/csharp/swig_csharp_extensions.i 2010-08-05 11:47:57 UTC (rev 10442)
@@ -29,6 +29,12 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/
+// Ensure the class is not marked BeforeFieldInit causing memory corruption with CLR4
+%pragma(csharp) imclasscode=%{
+ static $imclassname() {
+ }
+%}
+
%typemap(csout, excode=SWIGEXCODE) SWIGTYPE {
$&csclassname ret = new $&csclassname($imcall, true, null);$excode
return ret;
More information about the mapserver-commits
mailing list