Thread: orphaned ccase

Results 1 to 5 of 5
  1. #1 orphaned ccase 
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    whats an orphaned case?
    Reply With Quote  
     

  2. #2  
    damnant quod non intellegunt

    Mr Chainsaw's Avatar
    Join Date
    Sep 2006
    Age
    30
    Posts
    4,058
    Thanks given
    827
    Thanks received
    1,277
    Rep Power
    4664
    Problem with the switch statement/cases.
    Reply With Quote  
     

  3. #3  
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    well i removed a bracket and got orphaned case 117 and then when i added the bracket back i got 100 errors?
    Reply With Quote  
     

  4. #4  
    damnant quod non intellegunt

    Mr Chainsaw's Avatar
    Join Date
    Sep 2006
    Age
    30
    Posts
    4,058
    Thanks given
    827
    Thanks received
    1,277
    Rep Power
    4664
    Means you added that bracket in a wrong place.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    An orphaned case (NOT to be confused with duplicate label) is an error that pops up on compilation when there's a case outside a switch statement (the case is an orphan as it has no parent switch statement).
    It's the result of ending the switch statement too soon, this is often done when a case is added or removed.
    To solve it you'll need to find out which end bracket ('}') belongs to the start bracket ('{') of the switch statement. Depending on the location and the code you'll have to decide what to do.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •