2007-02-18, 12:17 AM
I'm trying to deal with several unhandled exception problems, mainly to do with Interop activex modules over which I have little or no control. I'm hoping someone can a) explain GB-PVR's behaviour when these errors occur and b) give me a clue as to the best way to deal with them.
Normally, if I fail to catch an exception in my plugin's code, the exception gets written to the gbpvr log (which is good because the user doesn't see anything and I get info about where I should add exception handling).
But sometimes (as in the case of Interop code) an unhandled exception dialog gets shown (the one with the "Details", "Continue", "Quit" buttons). I'm not sure if this is being displayed by Windows or if GB-PVR has its own exception trapper that displays this.
And then there's the third situation where the Windows "Send Error Report" dialog gets shown. I usually get this one when exiting GBPVR (and it's intermittent, darn it). There's no clue in the log file and no noticeable bad things happened while running GB-PVR. I'm pretty sure it's related to one or more of the activex components I'm using.
Ideally, I'd like to be able to trap "real" errors and handle them properly and to detect "spurious" errors (one's that don't seem to actually affect run time behaviour in any way) so I can ignore them and suppress error dialogs being displayed.
Googling the subject, I've discovered techniques for providing my own unhandled exception manager, but only at the application level (I think :confused: ) and I don't want to be overriding this stuff for GB-PVR as a whole :eek:, just for my plugin.
I imagine I'm not the first developer to encounter this issue (although I can't find any threads discussing it). Any ideas?
Normally, if I fail to catch an exception in my plugin's code, the exception gets written to the gbpvr log (which is good because the user doesn't see anything and I get info about where I should add exception handling).
But sometimes (as in the case of Interop code) an unhandled exception dialog gets shown (the one with the "Details", "Continue", "Quit" buttons). I'm not sure if this is being displayed by Windows or if GB-PVR has its own exception trapper that displays this.
And then there's the third situation where the Windows "Send Error Report" dialog gets shown. I usually get this one when exiting GBPVR (and it's intermittent, darn it). There's no clue in the log file and no noticeable bad things happened while running GB-PVR. I'm pretty sure it's related to one or more of the activex components I'm using.
Ideally, I'd like to be able to trap "real" errors and handle them properly and to detect "spurious" errors (one's that don't seem to actually affect run time behaviour in any way) so I can ignore them and suppress error dialogs being displayed.
Googling the subject, I've discovered techniques for providing my own unhandled exception manager, but only at the application level (I think :confused: ) and I don't want to be overriding this stuff for GB-PVR as a whole :eek:, just for my plugin.
I imagine I'm not the first developer to encounter this issue (although I can't find any threads discussing it). Any ideas?
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]
Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]
Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.