Opened 13 years ago
Closed 8 years ago
#4049 closed defect (fixed)
GDAL on C# fails with System.AccessViolationException on .NET 4.0
Reported by: | Abstraction | Owned by: | tamas |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | CSharpBindings | Version: | 1.7.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
Minimal code to see this:
OSGeo.OGR.Ogr.RegisterAll(); OSGeo.OGR.Driver drv = OSGeo.OGR.Ogr.GetDriverByName("ESRI Shapefile");
The problem here is that static constructor OgrPINVOKE.SWIGStringHelper() isn't called in .NET 4.0 thus causing calling 0x0 address instead of callback function. Wasn't tested in 1.8.0.
Change History (5)
comment:1 by , 13 years ago
Component: | default → CSharpBindings |
---|---|
Owner: | changed from | to
comment:2 by , 9 years ago
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Is this issue still there, tamas? If it is still an issue, what should be done for fixing it?