[futurebasic] Re: [FB] New FB_5_4_5 quits unexpectedly

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Tue, 13 Apr 2010 10:16:00 +1200
Robert Covington wrote:

>> Eugen Rosu wrote:
>>> Everytime I launch FB_5_4_5 it quits unexpectedly.
>> It seems that the PPC editor is hosed in OS X 10.5.8.
> That mean a Rosetta thing? Wondering if my (ppc) app Compositor is doing similar in that OS version?

No. The problem is specific to the editor, when it reads one particular file at startup (FB_5_4_5_Package/Headers/Key Words). The crash occurs only on a genuine PPC Mac, not under Rosetta. This explains why we did not see the bug in pre-release testing. Rosetta generally provides highly accurate emulation, so this is an unusual class of bug.

The simplest workaround is to move or rename the file FB_5_4_5_Package/Headers/Key Words. A disadvantage is that all keywords will be displayed in 'Source code' style instead of 'Keyword' style.

Four new keywords were added in FB 5.4.5, each containing an underscore. Most likely the underscores break the editor's string matching code (which is obfuscated and takes different little-endian and big-endian paths). If that's right, deleting the four suspicious entries should be a better workaround that preserves Keyword style.

Existing FB_5_4_5_Package/Headers/Key Words
...
to
tool_arg
tool_argc
tool_argv
tool_getenv
toolbox
...

After surgery
...
to
toolbox
...


Robert P.