Re: AS Problem
Re: AS Problem
- Subject: Re: AS Problem
- From: John W Baxter <email@hidden>
- Date: Thu, 19 Jul 2001 22:41:24 -0700
At 13:47 +1200 7/20/2001, kim wrote:
>
All,
>
>
apologies in advance for cross posting to both FMP/AS lists
>
>
I'm looking for someone (Ehsan, Jimmy J?) to confirm something for me
>
FMP 5/5.5, Mac OS 9.1, AS 1.6
>
>
the test db has only a single field and a single record. The field has
>
only three words in it.
>
>
tell application "FileMaker Pro"
>
set thetext to cell "Field1" of current record as styled text
>
end tell
>
>
Running results in an out of memory error in Script Editor (and a hard
>
crash in Script Debugger). After re-starting Script Debugger the script
>
may run once or twice but will then revert to quitting or timing out. It
>
seems impossibly unreliable.
>
>
_however_,
>
>
if I apply _any_ style to _any_ character of the text it runs flawlessly.
>
>
Runs fine in FMP 4.
As a hunch, this looks like FileMaker trying to access a style block
through a nil handle, and sending garbage (overlength?) back in the result
Apple event.
It would be interesting to run this code on a machine with Even Better Bus
Error installed (eg, a machine with the current MacsBug installed). If my
hunch is right, that should stop somewhere within FileMaker or a system
call FileMaker makes. [I presently lack FMP 5 *and* the current MacsBug,
so while I think this test would be interesting, I can't run it.]
---John
--
John Baxter email@hidden Port Ludlow, WA, USA