>>Device hanging at reset is a classic sign of accessing globals when you
>>shouldn't, yes? It was crashing for the Find dialog too. So I looked at my
>>PilotMain, and there, hiding, was:
>>
>> char msg[5]=" ";
>>
>>Obviously, the initialisation string would be stored as a fixed string
>>somewhere in the application - effectively a global reference.
>
> Followup - how ARE you meant to work with string literals during subcalls? I
> presume code like
>
> start = StrStr(text, "My literal string");
>
> is equally invalid?
>
I believe that if you turn on " PC-Relative Strings" in the 68K processor
settings panel of the project settings dialog, your string literals won't be
in global space. If you turn it off, they will be in global space, and
you'll have the problem demonstrated.
Neil