Home AMX Forum NetLinx Studio
Options

Weird bug or bad code

I noticed something odd the other day, I have a switch statement where the cases are literal strings.
switch(sName)
{	
  case 'M':
  {
   // some code 
  }
}

It all compiles and works correctly except for the case above. If I make the literal 2 characters like 'MM' no problem. If I leave it with one character 'M' I get the famous:

ERROR: (0): C10580: Internal Error: Major system error occurred during code generation

error.

Anyone seen this as well or is my code bad?
Paul

Comments

Sign In or Register to comment.