C
Chris Oswald
I am getting an exception that I cant figure out. It's very very
intermittent. I hope someone can shed some light on this. I
apologize if this post is hard to follow.
The exception occurs in
at Microsoft.AGL.Common.MISC.HandleAr().
at System.Windows.Forms.ScrollBar._SetInfo()
at System.Windows.Forms.ScrollBar.set_Value()
It happens when I set the value on a scrollbar. I used Reflector to
narrow down the code, but I'm not sure how to determine the error
because the HandleAR method just throws System.Exception. I have
attached the method to explain what I mean. How in the jack am I
supposed to figure out what the PAL_ERROR is. It obviously isn't one
of the errors microsoft planned for. It isn't documented at all of
course.
Friend Shared Sub HandleAr(ByVal ar As PAL_ERROR)
If (ar < PAL_ERROR.Success) Then
Select Case ar
Case PAL_ERROR.OOM
Throw New OutOfMemoryException
Case PAL_ERROR.InvalidHandle
Throw New ObjectDisposedException("")
Case PAL_ERROR.BadParam
Throw New ArgumentException
Case PAL_ERROR.NYI
Throw New NotSupportedException
Case PAL_ERROR.InvalidThreadId
Throw New NotSupportedException(Res.GetString(0, New
Object(0 - 1) {}))
End Select
Throw New Exception
End If
End Sub
intermittent. I hope someone can shed some light on this. I
apologize if this post is hard to follow.
The exception occurs in
at Microsoft.AGL.Common.MISC.HandleAr().
at System.Windows.Forms.ScrollBar._SetInfo()
at System.Windows.Forms.ScrollBar.set_Value()
It happens when I set the value on a scrollbar. I used Reflector to
narrow down the code, but I'm not sure how to determine the error
because the HandleAR method just throws System.Exception. I have
attached the method to explain what I mean. How in the jack am I
supposed to figure out what the PAL_ERROR is. It obviously isn't one
of the errors microsoft planned for. It isn't documented at all of
course.
Friend Shared Sub HandleAr(ByVal ar As PAL_ERROR)
If (ar < PAL_ERROR.Success) Then
Select Case ar
Case PAL_ERROR.OOM
Throw New OutOfMemoryException
Case PAL_ERROR.InvalidHandle
Throw New ObjectDisposedException("")
Case PAL_ERROR.BadParam
Throw New ArgumentException
Case PAL_ERROR.NYI
Throw New NotSupportedException
Case PAL_ERROR.InvalidThreadId
Throw New NotSupportedException(Res.GetString(0, New
Object(0 - 1) {}))
End Select
Throw New Exception
End If
End Sub