I'm attempting to write a player inventory for my games, and so far I can add and remove items by slot row# and column# ( basically an X/Y grid ). So far so good. But I need to be able to give the user a list of all the items he is holding, in alphabetical order, like so:
Apple x5
Dull Hairpin x1
Orange x2
Shining Sword x1
etc.
I have a method that does just that ( iInventory.List() ), but problems arise when trying to add new items and then list them again.
So far I have gotten 3 System.ExecutionEngineException and a System.OutOfMemoryException and a "Error: Attempting to write to locked memory. This may indicate corrupted memory elsewhere." message. I rebooted after that one, but I still got the other 2. What's going on?
The program should tell you how to use itself, but if you can't figure out how to do something, just ask.