njsokalski
Well-known member
- Joined
- Mar 16, 2011
- Messages
- 102
- Programming Experience
- 5-10
I started getting a "The parameter is incorrect" error for some reason that I cannot figure out. When I do a debug, it takes me to the "Application_UnhandledException" method in App.xaml.vb. When I look at the Call Stack, I see:
> ScoreKeeperTest.dll!ScoreKeeperTest.App.Application_UnhandledException(Object sender = {ScoreKeeperTest.App}, System.Windows.ApplicationUnhandledExceptionEventArgs e = {System.Windows.ApplicationUnhandledExceptionEventArgs}) Line 65 + 0x5 bytes Basic
System.Windows.dll!MS.Internal.Error.CallApplicationUEHandler(System.Exception e = {"The parameter is incorrect. "}) + 0x30 bytes
System.Windows.dll!MS.Internal.Error.GetXresultForUserException(System.Exception ex = {"The parameter is incorrect. "}) + 0x54 bytes
System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj = 132967360, System.IntPtr unmanagedObjArgs = 132936768, int argsTypeIndex = 160, string eventName = "M@36") + 0x165 bytes
[External Code]
Which does not mention any of my code, so it does not help me figure out what code of mine could be causing the problem. But if I step through the code, I don't get the error at all, so that obviously doesn't help me find where in my code, either. What is the problem, and why is it acting differently when I do a step through?
> ScoreKeeperTest.dll!ScoreKeeperTest.App.Application_UnhandledException(Object sender = {ScoreKeeperTest.App}, System.Windows.ApplicationUnhandledExceptionEventArgs e = {System.Windows.ApplicationUnhandledExceptionEventArgs}) Line 65 + 0x5 bytes Basic
System.Windows.dll!MS.Internal.Error.CallApplicationUEHandler(System.Exception e = {"The parameter is incorrect. "}) + 0x30 bytes
System.Windows.dll!MS.Internal.Error.GetXresultForUserException(System.Exception ex = {"The parameter is incorrect. "}) + 0x54 bytes
System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj = 132967360, System.IntPtr unmanagedObjArgs = 132936768, int argsTypeIndex = 160, string eventName = "M@36") + 0x165 bytes
[External Code]
Which does not mention any of my code, so it does not help me figure out what code of mine could be causing the problem. But if I step through the code, I don't get the error at all, so that obviously doesn't help me find where in my code, either. What is the problem, and why is it acting differently when I do a step through?