Re: [FTC b15pv11] DrawBackground
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Wed, 12 Mar 2008 19:08:08 -0500
Bob Keeney wrote:
I'm not entirely sure what's going on. I'm updating an application
that hasn't been updated since b15pv9 and I also just switched to RB
2008 r1.
I'm getting a nil object exception in pv11 when simply replacing the
older components with the new one. The exact error is happening in
FormattedText.drawBackground and g is nil after calling
g=display.graphics. The stack shows that it's getting called from
the FormattedText.Open event on the window.
Like I said, I'm simply updating from an older project. Any ideas
on what the issue is?
Have you added custom code such as a subclass? This may be the
source of the problem in the order in which things are done.
Anyway, it looks like you invoking the drawing code somehow
during initialization when updates have been inhibited. I put into
preview 12 a check to prevent such a backdoor invocation which
should solve your problem. Please test it out and tell me the
results.
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.
- Follow-Ups:
- Implementation Report
- From: Ron Benditt
- Re: [FTC b15pv11] DrawBackground
- From: Bob Keeney
- References:
- [FTC b15pv11] DrawBackground
- From: Bob Keeney
Other related posts:
- » Re: [FTC b15pv11] DrawBackground
- » Re: [FTC b15pv11] DrawBackground
- » Re: [FTC b15pv11] DrawBackground
I'm getting a nil object exception in pv11 when simply replacing the older components with the new one. The exact error is happening in FormattedText.drawBackground and g is nil after calling g=display.graphics. The stack shows that it's getting called from the FormattedText.Open event on the window.
Like I said, I'm simply updating from an older project. Any ideas on what the issue is?
- Implementation Report
- From: Ron Benditt
- Re: [FTC b15pv11] DrawBackground
- From: Bob Keeney
- [FTC b15pv11] DrawBackground
- From: Bob Keeney