3 lines BlitzMax can't compile

BlitzMax Forums/BlitzMax Programming/3 lines BlitzMax can't compile

JoshK(Posted 2006) [#1]
With these three lines, BlitzMax says it is compiling, takes 100% of the CPU usage, but doesn't ever get past "Compiling...". Remove any of the lines and it works fine.
pixmap:TPixmap=CreatePixmap(width,height,PF_RGB888,3)
glPixelStorei GL_UNPACK_ROW_LENGTH,Pixmap.Pitch/BytesPerPixel[pixmap.format]
gluBuild2DMipmaps GL_TEXTURE_CUBE_MAP_POSITIVE_X,format,width,height,GL_RGB,GL_UNSIGNED_BYTE,pixmap.pixels



N(Posted 2006) [#2]
I compiled it just fine.


Leiden(Posted 2006) [#3]
Didnt compile for me, just sat there using 99% of CPU.


N(Posted 2006) [#4]
What version of BlitzMax are you using?


Leiden(Posted 2006) [#5]
1.20


Regular K(Posted 2006) [#6]
pixmap:TPixmap=CreatePixmap(width,height,PF_RGB888,3)
Print "Pitch: " +Pitch
Print "BPP: " +BytesPerPixel[pixmap.format]
'glPixelStorei GL_UNPACK_ROW_LENGTH,Pixmap.Pitch/BytesPerPixel[pixmap.format]
'gluBuild2DMipmaps GL_TEXTURE_CUBE_MAP_POSITIVE_X,format,width,height,GL_RGB,GL_UNSIGNED_BYTE,pixmap.pixels


Pitch is equal to 0, thats probably why.

Dividing by 0 = no no in BlitzMax?

EDIT: gets stuck at compiling on release, but fine for debug


N(Posted 2006) [#7]
That's a runtime issue, Regular K. This is about whether or not it compiles.

It compiles fine on mine, so I'm not sure why it's messing up on other PCs.


WendellM(Posted 2006) [#8]
Compiles for me, too. Leiden's system specs are visible (so are Regular K's, but he didn't say whether it compiles for him). What BlitzMax, CPU, video card, and Windows is everyone else using? Perhaps by comparing we can find a shared factor...

It compiles on my:
BlitzMax 1.20 (with skidmark's separately updated IDE, in case that matters)
Athlon XP 3000+
ATI Radeon 9600 Pro
Windows XP Pro SP 2


Perturbatio(Posted 2006) [#9]
it compiles fine for me in debug mode, but not in release.


N(Posted 2006) [#10]
BMax 1.20
AMD64 3000+
1GB RAM
WinXP Home SP2

The relevant bits.


WendellM(Posted 2006) [#11]
Ah, Perturbatio has a point. I, too, had debug on. With it off, it locks during compile as described.

The relevant bits.

I hesitated over video card but included it due to the pixel stuff, just in case. :) You're right that it "shouldn't" matter....


N(Posted 2006) [#12]
Yep, release blows up. Interesting.

I'm watching the memory use slowly raise -- it's been jumping around between 60mb and 80mb. Right now it's at 75mb.

Edit: Just hit 97mb.