>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?

Reply via email to