Author Topic: tagging fails inside __try{} / __except{} blocks  (Read 6363 times)

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
tagging fails inside __try{} / __except{} blocks
« on: August 04, 2006, 02:05:04 PM »
Hello SlickTeam,

var 'a' and 'b are not tagged using this way of exception handling:
__try
{
   int a;
   ....
}
__except( )
{
   int b;
}
Threre is no problem with 'normal' notation:
try / except
{
}

Can you confirm this issue ?
(platform: v11.01 WXP-SP2)

HS2

Phil Barila

  • Senior Community Member
  • Posts: 745
  • Hero Points: 61
Re: tagging fails inside __try{} / __except{} blocks
« Reply #1 on: August 04, 2006, 05:20:33 PM »
Yes, it's an issue.  Add __try and its friends to your preprocessor defines at Tools > Options > File Extension Setup...->Options->Other->C Preprocessing.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: tagging fails inside __try{} / __except{} blocks
« Reply #2 on: August 04, 2006, 05:45:12 PM »
Thanks a lot Phil - that did the trick !

HS2

Phil Barila

  • Senior Community Member
  • Posts: 745
  • Hero Points: 61
Re: tagging fails inside __try{} / __except{} blocks
« Reply #3 on: August 04, 2006, 06:04:38 PM »
I got it from support a while back.  I complained of the same thing, and they sent me that workaround.  Since I know that was there in 11.0.0, I thought it might have been fixed in 11.0.1, but apparently not.  Maybe it will get in by 12.