> >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?
Correct. The safe way to access constant strings is to put them into
string resources and access them using DmGetResource or DmGet1Resource.
--
Roger Chaplin
<[EMAIL PROTECTED]>