• Advertisement
Sign in to follow this  

Retrieving Mesh from ArrayList causes Exception

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am filling an ArrayList like this: list.Add(Mesh.Box(device, 2,2,2)); list.Add(Mesh.Box(device, 3,3,3)); list.Add(Mesh.Box(device, 4,4,4)); ... but while trying the next things, it causes me an InvalidCallException for DrawSubset(): for (int index=0; index<list.Count; index++) ((Mesh) list[index]).DrawSubset(0); What's the problem with this?

Share this post


Link to post
Share on other sites
Advertisement
I found out, that DrawSubset() is called one time and succeeds. But when trying to render it a second time, it seems to have a NULL reference.

What can I do?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement