T
TheLetti
Hello out there,
is there any possibility for me to catch or avoid crashes caused within
unmanaged code?
The situation:
I'm writing a managed wrapper in MC++, and in there I use some
unmanaged COM methods for creating thumbnails.
The problem: One special line may cause a crash, and subsequently
blocks my whole application.
The line looks like this:
// unmanaged:
IExtractImage * peiURL = NULL; // use shell interface
HR_TRY(hr = peiURL->Extract(pThumbnail)); // application hangs in
this line sometimes
So is there any way for me to avoid blocking the whole app?
Normal exception-handling won't do since this com-method doesn't throw
any exceptions.
Maybe I could call this function in a separate thread, and if it
doesn't respond within a certain time I should kill the thread
programatically?
Are there other ways out there?
Thanks in advance,
TheLetti
is there any possibility for me to catch or avoid crashes caused within
unmanaged code?
The situation:
I'm writing a managed wrapper in MC++, and in there I use some
unmanaged COM methods for creating thumbnails.
The problem: One special line may cause a crash, and subsequently
blocks my whole application.
The line looks like this:
// unmanaged:
IExtractImage * peiURL = NULL; // use shell interface
HR_TRY(hr = peiURL->Extract(pThumbnail)); // application hangs in
this line sometimes
So is there any way for me to avoid blocking the whole app?
Normal exception-handling won't do since this com-method doesn't throw
any exceptions.
Maybe I could call this function in a separate thread, and if it
doesn't respond within a certain time I should kill the thread
programatically?
Are there other ways out there?
Thanks in advance,
TheLetti