On 2/26/07, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
I have 3 different versions of my app that only differ by a
language-specific Constructor file. Yet, in 2 out of 3, opening a
modal dialog pops up "MemoryMgr.c. Line 4372. Non-word-aligned handle"
What kind of resource (?) error can produce this? (only on device,
POSE seems immune to it)

are you using a single form; then, setting the labels from resources?
or, are you defining three sets of forms uniquely?

if you define three sets of forms; chances are everything will work out.
if you are using a common form; the issue you may run into is the
fact that you have a label with 10 chars; but, try to put 11 chars in it.

ie:

common:    LABEL 'XXXXX'
english_1:   LABEL 'do it'
english_2:   LABEL 'show me'
english_3:   LABEL 'gimme'

in the above example; english_1 and english_3 will work; but, english_2
will override the next item within the resource when CltSetLabel is called.
if you corrupt the resource in memory - you can easily get word-align
issues because the string values dont turn nicely into pointers.

as for why it may work on POSE without issues? probably that your
overwriting data still creates a word-aligned address :) word align has
a 50% chance of working or failing remember :)

--
// Aaron Ardiri

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to