The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 inaccurate switch-statement - Origin crashes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TreeNode

64 Posts

Posted - 11/30/2011 :  11:53:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: 8.0 SR6
Operating System: Win XP

Hi,

Origin crashes while compiling inaccurate switch statement, in detail when using nested switch-statements.
I accidentally forgot the braces in the nested switch-statement. This causes the crash. See example below:
void origin_crash_switch()
{
    int nCase, nCrash;
    nCrash = 0;
    nCase = 1;

    switch(nCase)
    {
    case 0:
        break;
    case 1:
        switch(nCrash)
     // {  <-- Origin crashes while compiling, when forgetting these braces
        case 0:
            break;
        case 1:
            break;
     // }
        break;
    default:
        break;
    }
}

Can you reproduce the crash?


|-- TreeNode
...|-- a??
...|-- ha!!

Penn

China
644 Posts

Posted - 11/30/2011 :  8:59:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Yes, we reproduce the crash, and we have added this to our bug tracking database, and ID is ORG-4493. If you want to check back with us in the future about this problem, please include this ID. Thank you for reporting this.


Penn
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000