palmason@aludra.usc.edu (Gunnar Palmason) (02/20/91)
Hi there, A program I am writing has apparently a bug (don't they all). At a certain point in the program I call TESetText, and all available memory gets eaten up. I've checked the parameters, and they all seem to be correct, the heap is ok prior to the call (and afterwards), and plenty of free memory (the length parameter to TESetText is in the range 1..32). That's strange enough for me, but what I find even stranger is that it seems to matter to what the data pointer points to. Let me explain that a little bit. My program has a couple] of spreadsheet like windows. When a window is opened, the value of cell 1,1 is copied to a edit box. If I open a window, type 'aaaaa 1' in cell 1,1 and then close the window, the program bombs (actually it doesn't bomb, but runs out of memory) when I open it again. If however I type 'aaaaaa1', everything is OK. More generally, if there is a space after position five in cell 1,1 the program doesn't do what it is supposed to do. If anyone out there has any idea what is going on, I'd be eternally grateful. Thanks in advance, Gunnar Palmason -- ############################################################################# Gunnar Thor Palmason "The less you know about home computers palmason@chaph.usc.edu the more you'll want the new IBM PS/1" #############################################################################