Hi Timothy, I also created a C++ Framework for Palm. I create my UI at runtime. But I avoided things like RTTI that consume a lot of memory. You also must use the stack as little as possible since the stack space on a Palm OS compatible device is quite small. Use new/delete instead. And you should also avoid templates. But besides that, my first guest would be that the problem is not in the fact that you use C++ but somewhere else in your framework.
PalmOS is sometimes a difficult platform to use and do strange things. If things are not exactly done like suggested in the SDK, you are in for some troubles... Go see : http://flippinbits.com/twiki/bin/view/FAQ/RootBGettingStarted for more informations on using C++ with plam os devices. Etienne "Timothy Dean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have created a object hierarchy using C++ in a Palm OS program. It uses > inheritance, and virtual functions. It is about 4 to 5 levels deep using > inheritance. The user interface is dynamically generated at run time. I am > running into strange problems that don't make sense. One example is that > when I use a call back draw function for a popup list box, it works fine for > lists of 4 or fewer items. Once I have 5 or more items in the list, I get a > memory error when I try to add a label immediatly following the list. If I > build the list in memory and don't use the callback, it seems to be fine. > > My question is, should I avoid inheritance, virtual functions, polymorphism, > etc.. for Palm OS programs? Thanks. > > Tim Dean > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
