I have a structure like the one defined below.  When i assign a handle to 
pointers d through f i have no problems freeing them later, but if i assign a 
handle to a through b i get a non-word aligned handle error when i try to free 
them.  The assignments of the handles are spread out through the program (its 
not like this is just one function assigning everything.

NOTE that i only access smallerstruct THROUGH bigger struct.

Anyone have any ideas why i am getting this and how to resolve the issue?

Is it because the bigger struct doesn't define the smaller struct as a pointer?

//Structure

typedef struct {
        char*   a;
        char*   b;
} smallerstruct;                


typedef struct {
        smallerstruct  ab
        char*          c;
        char*          d;
        char*          e;
        char*          f;
}
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to