Q&A - Question Unhandled exception Question Maja asked on January 26, 2018, keyword: Developer Kernel When adding layer from server by WMS service and by some reason connection to internet will be lost, there will occur unhandled exception when user will try zoom in or zoom out, which will stop the application. Answer to resolving this issue is catching this exception in Program.cs Main() function, but maybe there is built in procedure to handle this exception ? Technology used : C#, WinForms Stack trace : TatukGIS.NDK.EGIS_Exception: 0171 Server reports error "" w TatukGIS.NDK.TGIS_LayerWMS.DrawEx(TGIS_Extent _ex) w TatukGIS.NDK.TGIS_Layer.Draw() w TatukGIS.NDK.TGIS_Layer.Paint() w TatukGIS.NDK.TGIS_Viewer.Draw(Object _renderer, TGIS_DrawMode _mode) w TatukGIS.NDK.WinForms.TGIS_ViewerWnd.Draw(Object _renderer, TGIS_DrawMode _mode) w TatukGIS.NDK.WinForms.TGIS_ViewerWnd.I6Y(Object , TGIS_ViewerWndHelperRun ) w TatukGIS.NDK.TGIS_ViewerWndHelperRun.rycT() w TatukGIS.NDK.TGIS_ViewerWndHelperRun..ctor(TGIS_ViewerWndHelper _context) w TatukGIS.NDK.TGIS_ViewerWndHelper.eycI(Object ) w TatukGIS.RTL.TGIS_Timer.S1d(Object , EventArgs ) w System.Windows.Forms.Timer.OnTick(EventArgs e) w System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Answers Tomasz Kosinski (TatukGIS) replied January 26, 2018 Please handle GIS.PaintExceptionEvent . It is fully functional in version 11.13.0 STABLE (to be posted later today) If you would like to answer the question please Sign In. * * Stay signed in on this computer Please review our recent Privacy Policy.If you have any questions or requests, please contact us. Forgotten password Rules The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone. Keep the content positive and professional. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.