catching GDBG exceptions

The GDBG sometimes throw exception appearing in a msg box, how can I catch such exceptions. I''ll like to catch and log such ecpetions instead of allowing them appear in pop up boxes.

1 Reply

ST stanleyj Syncfusion Team March 6, 2006 03:04 PM UTC

Hi Kingsley, If the exception is of a validation one, like the column type is an into and the user enters input other than numbers, then you may use the custom validation. Please refer this forum and KB for more details and avoid raising a message box. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=36231 If that exception is something unwanted, you can ignore it through ResumeCatchExceptions. using Syncfusion.Windows.Forms; ExceptionManager.ExceptionCatched += new ExceptionCatchedEventHandler(ExceptionManager_ExceptionCatched); void ExceptionManager_ExceptionCatched(object sender, ExceptionCatchedEventArgs e) { ExceptionManager.ResumeCatchExceptions(); } Let me know if your requirement is different. Best regards, Stanley

Loader.
Up arrow icon