Qbasicnews.com

Full Version: UGL issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a problem with UGL; specifically with the function uglNewBMP. The problem started after I had to divide my code up into seperate modules. That didn't take much time; I figured that would have to be done eventually so I had already given all my subs and functions prefixes-- mathInBox, imgGetBmpWH, etc. The best way I can describe it is that when I try to load a BMP, it simply returns a handle of zero. It didn't work after I moved this particular sub back to the main module, so I checked to see I had run out of EMS memory or something, but emsAvail returned "15728640".

What's odd about this is that it seems that I can load one BMP file-- grass.bmp, which is tiled to form the background-- but I can't load any others. Does anyone have any suggestions?

*edit* Another oddity. The old, single-module program in my backup folder still works fine.

--pr0gger
Can i see the code?
It's a really big program with a lot of data files (graphics, units, etc); can I ZIP it and email it to you? And do you want the single-module program that still works as well?


--pr0gger
update; it -does- seem like a memory issue; when I load various BMPs for cursors before I try to load these BMPs, I get these problems.

I'm going to try to reduce the size of my bitmaps by changing them to 16 bit files rather than 24 bits.

--pr0gger

EDIT: Ok, that didn't work. I changed them down to 8bits, too-- no sucess.

EDIT: 11/4: I'm back to working with only two modules (math, main) , and the problem isn't apparant there. If it comes back, I'll repost.