radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
915 stars 410 forks source link

Update rate of Gmap net #65

Closed Sevas55 closed 6 years ago

Sevas55 commented 7 years ago

Hi, radioman.

What maximum update rate for Gmap net? I use flight simulator to work with GM, sim sends gps data to GM over tcp with framerate ~ 30 times per second. But I have weird exceptions - just moving mouse over GMap I have this error.

"System.ArgumentOutOfRangeException" в mscorlib.dll

If I reduce framerate to 1-2 fps than I error disappear.

************** Exception text **************
System.ArgumentOutOfRangeException: Index out of range. Index must be positive number, his size should not exceed collection size.
Имя параметра: index
   в System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   в System.Collections.Generic.List`1.get_Item(Int32 index)
   в GMap.NET.WindowsForms.GMapControl.OnMouseMove(MouseEventArgs e)
   в System.Windows.Forms.Control.WmMouseMove(Message& m)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Загруженные сборки **************
mscorlib
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
MFD_GPS_MAP
    Version: 1.0.0.0
    VersionWin32: 1.0.0.0
    CodeBase: file:///I:/MailCloud/DCS/Su-27SM_virtpanel_for_FC2/_Gps_map/bin/Release/MFD_GPS_MAP.exe
----------------------------------------
System.Windows.Forms
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Version: 4.0.0.0
    VersionWin32: 4.6.1647.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
GMap.NET.WindowsForms
    Version: 1.7.0.0
    VersionWin32: 1.7
    CodeBase: file:///I:/MailCloud/DCS/Su-27SM_virtpanel_for_FC2/_Gps_map/bin/Release/GMap.NET.WindowsForms.DLL
----------------------------------------
GMap.NET.Core
    Version: 1.7.0.0
    VersionWin32: 1.7
    CodeBase: file:///I:/MailCloud/DCS/Su-27SM_virtpanel_for_FC2/_Gps_map/bin/Release/GMap.NET.Core.DLL
----------------------------------------
System.Configuration
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Version: 4.0.0.0
    VersionWin32: 4.6.1647.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data.SQLite
    Version: 1.0.84.0
    VersionWin32: 1.0.84.0
    CodeBase: file:///C:/Users/1/AppData/Local/GMap.NET/DllCache/SQLite_v84_NET4_x64/System.Data.SQLite.DLL
----------------------------------------
System.Data
    Version: 4.0.0.0
    Version Win32: 4.6.1647.0 built by: NETFXREL3STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Version: 4.0.0.0
    Version Win32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Version: 4.0.0.0
    Version Win32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
mscorlib.resources
    Version: 4.0.0.0
    Version Win32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Version: 4.0.0.0
    VersionWin32: 4.6.1590.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.

Например:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.

What I missed? Thank you!