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

hs2

  • Senior Community Member
  • Posts: 2728
  • Hero Points: 282
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: 746
  • 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: 2728
  • Hero Points: 282
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: 746
  • 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.