Permalink
Browse files

add explanation for why we need second param in mapObj

  • Loading branch information...
lydonchandra committed Nov 20, 2015
1 parent 26cfef5 commit a7f530004e0afffee1c947ff8e242bb505ddd29d
Showing with 3 additions and 2 deletions.
  1. +2 −1 mapscript/csharp/csmodule.i
  2. +1 −1 mapscript/swiginc/map.i
@@ -291,7 +291,8 @@ static SWIG_CSharpByteArrayHelperCallback SWIG_csharp_bytearray_callback = NULL;
%typemap(csinterfaces) mapObj "IDisposable, System.Runtime.Serialization.ISerializable";
%typemap(csattributes) mapObj "[Serializable]"
%typemap(cscode) mapObj, struct mapObj %{ public string processTemplate(int bGenerateImages, string[] names, string[] values)
%typemap(cscode) mapObj, struct mapObj %{
public string processTemplate(int bGenerateImages, string[] names, string[] values)
{
if (names.Length != values.Length)
throw new ArgumentException("Invalid array length specified!");
@@ -214,7 +214,7 @@
__try {
return msDrawMap(self, MS_FALSE);
}
__except(1 /*EXCEPTION_EXECUTE_HANDLER*/) {
__except(1 /*EXCEPTION_EXECUTE_HANDLER, catch every exception so it doesn't crash IIS*/) {
msSetError(MS_IMGERR, "Unhandled exception in drawing map image 0x%08x", "msDrawMap()", GetExceptionCode());
}
#else

0 comments on commit a7f5300

Please sign in to comment.