שאלה פשוטה ב- Exception handler AB
שלום, אני מנסה לתפוס שגיאה ע"י: Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new System.UnhandledExceptionEventHandler(AppDomain_UnHandledException); מה שקורה בהרצה, זה שהוא קודם מראה את השגיאה, כאילו אין handler.ואחר כך אם לוחצים על continue , הוא נכנס לפונקציה שמטפלת בשגיאה. זה תגובה נכונה? חשבתי שהוא לא אמור להציג שגיאה אלא ישר להכנס לפונקציה. תודה רבה
שלום, אני מנסה לתפוס שגיאה ע"י: Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new System.UnhandledExceptionEventHandler(AppDomain_UnHandledException); מה שקורה בהרצה, זה שהוא קודם מראה את השגיאה, כאילו אין handler.ואחר כך אם לוחצים על continue , הוא נכנס לפונקציה שמטפלת בשגיאה. זה תגובה נכונה? חשבתי שהוא לא אמור להציג שגיאה אלא ישר להכנס לפונקציה. תודה רבה