Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #145 from Frassle/throw

Preserve stack trace in OutOfMemory exception
  • Loading branch information...
commit c8a5bf5e3230f3f035efdd4fc8ec6ef8da2b7e4f 2 parents 381c34d + 6dda84d
@thefiddler thefiddler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/BindingsBase.cs
View
4 Source/OpenTK/BindingsBase.cs
@@ -211,7 +211,7 @@ protected static IntPtr MarshalStringArrayToPtr(string[] str_array)
Marshal.WriteIntPtr(ptr, i * IntPtr.Size, str);
}
}
- catch (OutOfMemoryException oom)
+ catch (OutOfMemoryException)
{
for (i = i - 1; i >= 0; --i)
{
@@ -220,7 +220,7 @@ protected static IntPtr MarshalStringArrayToPtr(string[] str_array)
Marshal.FreeHGlobal(ptr);
- throw oom;
+ throw;
}
}
return ptr;
Please sign in to comment.
Something went wrong with that request. Please try again.