Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1649: VAX doesn't handle function level try blocks
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alex.korban
Junior Member

17 Posts

Posted - Nov 09 2008 :  6:02:41 PM  Show Profile  Reply with Quote
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.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 10 2008 :  3:29:21 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=20848

Edited by - accord on Nov 10 2008 4:24:39 PM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000