Thanks to everybody. I have fixed the problem. There was double definition
by my mistake in the <MyApp>.h file:
#define labelID_Of 1026
// Some other #define statements
#define fieldID_Query 1026
The statement
FldSetTextHandle(fieldptr_Query, initH);
actually dealt with the label, not the field. This is why the code went out
of scope.
----- Original Message -----
From: "Joe" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 10:08 PM
Subject: Re: Non-word-aligned handle
> --- Alexandre Kazantsev <[EMAIL PROTECTED]> wrote:
> >
> > I'm getting the "Non-word-aligned handle" SysFatalAlert"
> > from the code
> > {
> > char nullstring = 0;
> > MemHandle initH;
> >
> > initH = MemHandleNew(1);
> > StrCopy( (char *)MemHandleLock(initH), &nullstring);
> > MemHandleUnlock(initH);
> > FldSetTextHandle(fieldptr_Query, initH);
> > //!!! The line above generates the error !!!
> > }
>
> Is fieldptr_Query actually a FieldType * that has been properly
> initialized and is in scope?
>
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/