3 lines BlitzMax can't compile

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

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


I compiled it just fine.

Didnt compile for me, just sat there using 99% of CPU.

What version of BlitzMax are you using?

1.20

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

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.

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

it compiles fine for me in debug mode, but not in release.

BMax 1.20
AMD64 3000+
1GB RAM
WinXP Home SP2

The relevant bits.

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....

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.