Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1649: VAX doesn't handle function level try blocks

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
alex.korban Posted - Nov 09 2008 : 6:02:41 PM
Hi

I use the standard edition of Visual C++ 2005, and it seems that when I convert a function to use a function level try/catch block, i.e. go from this:

void MainWindow::DoSomething(bool value)
{
    try
    {
        //...
    }
    catch (std::exception& e)
    {
        //...
    }
}


to


void MainWindow::DoSomething(bool value)
try
{
    //...
}
catch (std::exception& e)
{
    //...
}
,

the function disappears from the list of functions in the current file, and I can only go to its declaration but can't go from declaration to definition. Default IntelliSense still allows me to go to the definition (by pressing F12). As soon as I change the function back to use a regular try/catch, everything works fine.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Nov 10 2008 : 3:29:21 PM
I am seeing the same effect here. Thank you for the clear description.

case=20848

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000