gisinternals / buildsystem

Build system on www.gisinternals.com
MIT License
35 stars 10 forks source link

An unhandled exception of type 'System.AccessViolationException' occurred in ogr_csharp.dll #182

Closed qzhangxy closed 2 years ago

qzhangxy commented 3 years ago

An unhandled exception of type 'System.AccessViolationException' occurred in ogr_csharp.dll :

namespace OSGeo.OGR { public class DataSource : IDisposable ... public virtual void Dispose() { lock (this) { if (swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { swigCMemOwn = false; OgrPINVOKE.delete_DataSource(swigCPtr); } **swigCPtr = new HandleRef(null, IntPtr.Zero);** GC.SuppressFinalize(this); } }

qzhangxy commented 3 years ago

solved

szekerest commented 3 years ago

@qzhangxy What was the problem specifically?