Problem with the cases in Menu

Hello guys, I'm doing a project of a weigher packer, and i'm having problems in Switchs/cases, Less than 10 cases i have no problem. But if i do more I have runtime problems..

code:
if(digitalRead(select) && t_select) //But select ?
{ //If yes
t_select = 0x00; //clean the flag

switch(option)
{
case 0x01: menu50g(); break;
case 0x02: menu100g(); break;
case 0x03: menu150g(); break;
case 0x04: menu200g(); break;
case 0x05: menu250g(); break;
case 0x06: menu300g(); break;
case 0x07: menu350g(); break;
case 0x08: menu400g(); break;
case 0x09: menu450g(); break;
case 0x10: menu500g(); break;
case 0x11: menu550g(); break;
case 0x12: menu600g(); break;
case 0x13: menu650g(); break;
case 0x14: menu700g(); break;
case 0x15: menu750g(); break;
case 0x16: menu800g(); break;
case 0x17: menu850g(); break;
case 0x18: menu900g(); break;
case 0x19: menu950g(); break;

}

Thanks everyone!

There's no 10 case limit so you must have done something wrong in your code. Go read the "How to use this forum" sticky at the top of any of the boards so you learn to post code right and then come post a complete program that can compile and exhibits the problem. If you don't know what the problem is then don't pretend to know which portion of the code we would need to see to find it.

What "runtime problems"? Being specific helps as we cannot read minds.

Are you sure you are not confusing decimal and hex numbers? If the cases are supposed to be in number order with no gaps, then 0x09 is followed by 0x0a (decimal 10), not 0x10 (decimal 16).

Tip: it always helps to use the 'default' in a case to signal an error if you are not expecting out of bounds cases. This will greatly help your debugging.

King Arthur: "One! ... Two! ... Five!"

Sir Galahad: "Three Sir!"

Arthur: "Three!"

"Always look on the bright ...."

Whoops, wrong movie.