Click here to Skip to main content
15,918,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Ok, this is my last stage!
And the only problem I am getting is "FormatException was unhandled");
The game has a lot of classes, and I don't see any way to post the code other than giving you a link to download the file so you can play the game and force the bug.


What you have to do to get a bug is chose bet range first>click on any chip(as long it doesn't exceed bet range)> click deal>now window will pop up saying who won > click ok> now click Rebet and that's when you should get an exception...
Link to the file.

http://www.4shared.com/account/dir/ZC-V313C/_online.html#dir=71464118[^]
Posted

First, nobody is going to download strangers code and run it. It think you can figure out why.

Second, that error usually shows up when you try to parse a number to a datatype and the input string isn't compatible with the conversion. So, where does this happen in your code??

This one should be difficult to find if you use the debugger.
 
Share this answer
 
No, downloading your code is not an option. Do the following. This kind of exception is really easy to investigate. Just run the code under debugger. It will show you where the exception is thrown and what format is wrong. And only if you fail to solve the problem, show some small fragment of code or, better, create a code sample specifically to ask a question. This time you will show exact like of code causing the problem and complete exception information.

Besides, you need to use the debugger on any slightest concern on your run-time behavior. And you certainly need to use it before asking questions like that.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900