Computer Science Canada

Error -> Pic was never allocated

Author:  MyPistolsIn3D [ Thu May 20, 2004 5:47 pm ]
Post subject:  Error -> Pic was never allocated

Why am I getting this error? Whats it mean?

Author:  Dan [ Thu May 20, 2004 6:27 pm ]
Post subject: 

it means the value you are sending to the pic comand is ehtere not a pic or that pic was not loaded right.

Author:  Pickles [ Thu May 20, 2004 6:43 pm ]
Post subject:  ...

code:
loop
    cls
    frenchplaney -= 5
    missiley += 40
    Pic.Draw (sky, 0, 0, picMerge)
    Pic.Draw (frenchplane2, 100, frenchplaney, picMerge)
    Pic.Draw (missile, 100, missiley, picCopy) %% this line here
    View.Update
    exit when missiley + 50 >= frenchplaney
end loop


I think thats what you wanted, it looks like it hits him

Author:  beedub [ Thu May 20, 2004 8:10 pm ]
Post subject: 

generally the problem is that the pictures arent in the same directory as ur program. Also, you need to make sure the picture is a .bmp and that u spelled the name of the file correctly.

Author:  Paul [ Thu May 20, 2004 8:11 pm ]
Post subject: 

not so in 3.11, you could have that problem in 3.11 for no reason at all, and if u restart it, it usually works.

Author:  MyPistolsIn3D [ Fri May 21, 2004 2:44 pm ]
Post subject: 

Ya thx guys, problem was i forgot a "y" on "missiley".


: