G
Guest
Hello all,
I am working on an application which uses quite a few bitmaps as skins for
custom controls.
I am getting a very difficult bug to track - my application performs quite a
few bitmap operations which use a timer to help time-slice so the UI remains
responsive. At one point, I am setting a flag to indicate to the timer that a
particular control needs to have its background refreshed. This is placed
into a list for future handling. This completes fine. Debugging in the timer
also doesn't reveal any problems, although it gets rather difficult to follow
the execution thread.
At any rate, at some, not particularly repeatable point, I press F10 and
control returns to .net/Windows and I get the error:
"A first chance exception of type 'System.ArgumentException' occurred in
system.drawing.dll Additional information: Invalid parameter used."
The problem is that I don't have any clue as to where the error is occurring
- the debugger stops at the Application.Run() line, there's no call stack, no
objects I can evaluate, I'm kinda stuck.
If I turn off exception debugging (i.e. set "When the exception is thrown"
radio-button to "Continue"), then the error changes to:
"An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll Additional information: Invalid parameter used."
In both cases, the debugger catches execution at the same point, just before
shutting the program down.
I'm looking for any pointers on steps I can take to at least cause execution
to pause at some useful point.
Thanks,
Markus Szillat
I am working on an application which uses quite a few bitmaps as skins for
custom controls.
I am getting a very difficult bug to track - my application performs quite a
few bitmap operations which use a timer to help time-slice so the UI remains
responsive. At one point, I am setting a flag to indicate to the timer that a
particular control needs to have its background refreshed. This is placed
into a list for future handling. This completes fine. Debugging in the timer
also doesn't reveal any problems, although it gets rather difficult to follow
the execution thread.
At any rate, at some, not particularly repeatable point, I press F10 and
control returns to .net/Windows and I get the error:
"A first chance exception of type 'System.ArgumentException' occurred in
system.drawing.dll Additional information: Invalid parameter used."
The problem is that I don't have any clue as to where the error is occurring
- the debugger stops at the Application.Run() line, there's no call stack, no
objects I can evaluate, I'm kinda stuck.
If I turn off exception debugging (i.e. set "When the exception is thrown"
radio-button to "Continue"), then the error changes to:
"An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll Additional information: Invalid parameter used."
In both cases, the debugger catches execution at the same point, just before
shutting the program down.
I'm looking for any pointers on steps I can take to at least cause execution
to pause at some useful point.
Thanks,
Markus Szillat