Original Post
ok in a simple opengl bitmap loading function I am createing an array for colors and an alpha channel,
GLubyte *data; //create pointer to memory
data = new GLubyte[sizeX*sizeY*4]; // Bitmap is x*y*4 bits/pixel
then after this in the program later when I scroll down on my little map it will crash if I go down to far on the Y axis. it took some hunting to find that the above was the cause. I confirmed it by changing the 4 to a 3 like below.
GLubyte *data; //create pointer to memory
data = new GLubyte[sizeX*sizeY*3]; // Bitmap is x*y*3 bits/pixel
so this would lack the Alpha channel I want, but this does not cause the program to crash. Any ideas about what would cause this or how I could fix it?
if you would like more information just ask.
EDIT:
PS. I thought I might add the error that my program throws,
The exception Floating-point invalid operation.
(oxc0000090)occurred in the applicatoin at location 0x00407b71.
followed by the same error again and the followed by
The exceptoin unknown software exception (oxc0000027)occurred in the application at location 0x77e9bc2d
[edited by - Xero-X2 on August 9, 2002 1:33:39 AM]