Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UGL issue
#1
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
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#2
Can i see the code?
oship me and i will give you lots of guurrls and beeea
Reply
#3
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
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply
#4
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.
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)