Re: test if a pointer is pointing to a valid object or not?
Re: test if a pointer is pointing to a valid object or not?
- Subject: Re: test if a pointer is pointing to a valid object or not?
- From: Ambroise Confetti <email@hidden>
- Date: Wed, 29 Oct 2003 16:22:23 +0100
Le 29 oct. 03, ` 12:52, Alastair J.Houghton a icrit :
>
You still need to do OS calls, or attempt to access it and catch
>
SIGSEGV and SIGBUS.
How would you do that? That's interesting since my application is a
QuickTime player and some widespread third-party codecs badly support
some QuickTime operations (like changing a movie's preferred codec once
frames have already been displayed) and crash my software. I could make
the playback happen in a separate task, but my app would lose in
integrity (different menu bars, etc.).
So if it is possible to catch SIGSEGV and SIGBUS caused in my task by a
specific library and recover normal operation (for example, make some
clean-up and jump directly at the end of the current run loop) with a
simple error message to the user, that would be great. (However, I
doubt making subsequent calls to QuickTime functions would be harmless
since the library would be left in a possibly invalid state... So maybe
that's not a so good idea.)
Ambroise
http://www.cellulo.info/
ICQ 4508259
AIM atvaark
[demime 0.98b removed an attachment of type text/directory which had a name of Ambroise Confetti.vcf]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.