Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

Edited Issue: FeatureSet.Open crashes with ArgumentOutOfRangeException [23945]

$
0
0
When opening a shape file, the FeatureSet.Open method raise an ArgumentOutOfRangeException.

The code raising the exception is really basic:
DotSpatial.Data.FeatureSet fs = (DotSpatial.Data.FeatureSet)DotSpatial.Data.FeatureSet.Open("c:\\temp\\ARCHI_13-01-01.shp");

Here the stack trace:

in System.Collections.Generic.List`1.get_Item(Int32 index)
in DotSpatial.Data.LineShapefile.FillLines(String fileName, IProgressHandler progressHandler) in E:\dev\dotSpatial\DotSpatial.Data\LineShapefile.cs:riga 299
in DotSpatial.Data.LineShapefile.Open(String fileName, IProgressHandler progressHandler) in E:\dev\dotSpatial\DotSpatial.Data\LineShapefile.cs:riga 89
in DotSpatial.Data.Shapefile.OpenFile(String fileName, IProgressHandler progressHandler) in E:\dev\dotSpatial\DotSpatial.Data\Shapefile.cs:riga 329
in DotSpatial.Data.Shapefile.OpenFile(String fileName) in E:\dev\dotSpatial\DotSpatial.Data\Shapefile.cs:riga 269
in DotSpatial.Data.ShapefileDataProvider.Open(String fileName) in E:\dev\dotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:riga 119
in DotSpatial.Data.ShapefileDataProvider.DotSpatial.Data.IDataProvider.Open(String fileName) in E:\dev\dotSpatial\DotSpatial.Data\ShapefileDataProvider.cs:riga 65
in DotSpatial.Data.DataManager.OpenFile(String fileName, Boolean inRam, IProgressHandler progressHandler) in E:\dev\dotSpatial\DotSpatial.Data\DataManager.cs:riga 375
in DotSpatial.Data.DataManager.OpenVector(String fileName, Boolean inRam, IProgressHandler prog) in E:\dev\dotSpatial\DotSpatial.Data\DataManager.cs:riga 281
in DotSpatial.Data.FeatureSet.Open(String fileName) in E:\dev\dotSpatial\DotSpatial.Data\FeatureSet.cs:riga 1145
in DeleteMe.Form1.button1_Click(Object sender, EventArgs e) in C:\Disco_D\Source\DeleteMe\Form1.cs:riga 33
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
in DeleteMe.Program.Main() in C:\Disco_D\Source\DeleteMe\Program.cs:riga 18
in System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>