Page 1 of 1

help weird error

Posted: Thu Feb 23, 2006 2:13 pm
by PlasmaGhost
i got such a strange error. im kinda new to c# and im pretty good but wtf is this? check the pick
Image
so if anybody could help me that'd be great. o and if ur wondering what im making, its a game engine

Re: help weird error

Posted: Thu Feb 23, 2006 2:30 pm
by Patrickssj6
im kinda new to c#

Code: Select all

o and if ur wondering what im making, its a game engine
right...


Sry that my post is not helpfull :D

Posted: Thu Feb 23, 2006 2:37 pm
by PlasmaGhost
im new but i no lots from vb they have many similarities

Posted: Fri Feb 24, 2006 4:08 pm
by kornman00
You should assert that "bmps" is not null. If it is, it can't enumerate the values for it to do a foreach.

Posted: Sun Feb 26, 2006 12:37 pm
by PlasmaGhost
i hate arrays alot...lol but heres what i did:

i declared bmps as null
then i added objects to bmps
so when u try to do the foreach it does that