Page 1 of 1

Posted: Sun May 19, 2002 11:35 pm
by BackupUser
Restored from previous forum. Originally posted by UserBob.

I am trying to define a structure and make a new list.

The problem is that when I compile the code, I get a message saying "Can't create the PureBasic.exe file (already running?)"

The code is

Structure code
rawcode.s
instr.w[5]
EndStructure

Structure robot
name.s
;code.code
max_shield.w
max_dam.w
max_energy.w
EndStructure

NewList robots.robot()

If I comment out the NewList line, it compiles fine. If I uncomment, I get the same message.

Any suggestions?

BG

Posted: Mon May 20, 2002 12:01 am
by BackupUser
Restored from previous forum. Originally posted by Paul.

What version of PB are you using... cause it works fine here with PB3.1

I know there was a documented bug in older versions of PB when calling NewList but not using any commands with it (like AddElement)