Re: [Bug] Nil objects are not handled
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Fri, 21 Sep 2007 11:04:43 -0500
Dr Gerard Hammond wrote:
It is very easy to get a NIL object exception in FTC when dealing
with dragged in gifs/jpgs images.
There appears to be no nil object checking code for images.
Is it up to me to trap the internal FTC errors? . I doubt I could
use the FTC at this stage in a real app ;-(
Bob Keeney wrote:
Excellent question. What are the long term plans for error
trapping in FTC?
The plan: Eliminate the defects. If the FTC encounters an error,
it should handle it gracefully. You as the user of the FTC should
not have to worry about the FTC crashing or misbehaving.
Therefore, you should not have to trap internal errors.
What Gerard is asking is really a two prong statement. First he
wants me to know that there is a problem with image processing.
Second, it looks more like a reference to a previous suggestion
he made to involving the pragma code as follows.
#if not DebugBuild
#pragma DisableAutoWaitCursor
#pragma DisableBoundsChecking
#pragma NilObjectChecking false
#pragma StackOverflowChecking false
#endif
For the first issue, I have it on my todo list and it will get
worked on. The goal is to make the FTC bullet proof. Please run
the FTC in the debugger and attempt to get it to fail in this
situation if you can. This will pinpoint the exact spot where it
fails and will go a long ways to solving the problem (especially
when you say it is easy to reproduce).
For the second issue, I have figured out a way to deal with the
pragma statements to make them configurable and this will appear
in a future preview. The trade off is if you turn off the pragmas,
you will trade speed of execution. This will be a choice you will
make and then you will have to add extra code to trap exceptions
and you will be then faced with the situation of what to do with
them. Then again, if I achieve my goal of defect free operation of
the FTC, this will not be necessary. But I will give you the
choice to decide how you want to handle it.
My current development focus is to perfect the undo code
functionality. I have been throwing in a couple fixes for non-undo
related issues with each preview, so progress is being made. So
please send more specific details when possible when you report an
error. It will ensure that your problems will be solved.
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- References:
- [Bug] Nil objects are not handled
- From: Dr Gerard Hammond
Other related posts:
- » RE: [Bug] Nil objects are not handled
- » Re: [Bug] Nil objects are not handled
There appears to be no nil object checking code for images.Is it up to me to trap the internal FTC errors? . I doubt I could use the FTC at this stage in a real app ;-(
- [Bug] Nil objects are not handled
- From: Dr Gerard Hammond