Opened 16 years ago
Closed 15 years ago
#2173 closed defect (worksforme)
C# Vista 64-bit OSGeo.OGR.Datasource.CreateLayer freezing
Reported by: | mappypants | Owned by: | tamas |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | CSharpBindings | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
.NET 2.0, Visual Studio 2005 on Windows Vista Business. Using the csharp dlls from FWTools 2.0.4. Program worked fine under Windows XP 32-bit. Using Vista 64-bit, the flow of execution freezes until the C Run Time (CRT) terminates abnormally at the bolded function call:
Ogr.RegisterAll();
Driver driver = Ogr.GetDriverByName("ESRI Shapefile");
DataSource datasource = driver.CreateDataSource(this.theForm.output, new string[] { });
Layer layer = datasource.CreateLayer("points", null, OSGeo.OGR.wkbGeometryType.wkbLineString25D, new string[] { });
FieldDefn fdefn = new FieldDefn("elev", FieldType.OFTReal); fdefn.SetWidth(32);
That is at the datasource.CreateLayer function call. This only causes a freeze of execution when this code is executed from a C# GUI. When executed from a command line C# program it runs fine.
Change History (2)
comment:1 by , 15 years ago
Milestone: | → 1.6.0 |
---|
comment:2 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
It's pretty working for me on Vista 64, closing this ticket now. If you still find the issue please reopen, and post me a sample project to reproduce it.