I am trying to create a simple app along the lines of 'hello world'.  In
this app I do some dynamic memory allocation with MemHandleNew.  I wouldn't
think this is a big deal, but when this call is made it corrupts a local
variable. (which eventually causes the app to throw an exception).

Here is rougly what the code looks like
(note that this isn't EXACTLY what it looks like, I just don't have it on
the computer Iam composing this note on)

StartApplication()
{
    Int j;
    VoidHand h;

    ...
    /* coming into this call j and h are both 0 */
    h=MemHandleNew(4096);
    /* after the call j=5458 and h=-32768*/
    ...
}


has anyone seen a problem like this?  I am new to both palm programming and
the gcc compiler, however I have been programming for years.  In addition
the compiler builds the prc without any errors.  My dev environment is win98
with prc tools 0.5.0.  I have a palmVx with palmOS 3.1.  This is a very
frustrating problem since I can only make the simplest programs run (and not
tmo reliably).  At this point any suggestions would be greatly appreciated.


Thanks,

Trevor Walker
[EMAIL PROTECTED]







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to