Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I created an IMENUCTL object and added only resource image items to the menu. It turns out I could only add 6 items to it. The usable heaps were lowered dramatically.
I noticed from the emulater that the usable memory will recover if I pressed UP and DOWN keys to move between menu items.

So I added IMENUCTL_Redraw behind each line of IMENUCTL_Additem, I found that I could add 8 items instead of 6.

Such things also happend to other APIs. When I created multiple ITEXTCTLs in one window, the usable heaps became very small until I switched beteewn those text areas.(200K Bytes recovers)

Can you tell me why such bizzare things happened? How to prevent the usable heaps from fluctuating so dramatically?