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
 1539: volatile method problems
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

wstanley
Junior Member

20 Posts

Posted - Oct 24 2006 :  01:38:19 AM  Show Profile  Reply with Quote
Take the following code snippet and copy into VC++ 8.
VA X b1539 then does the following:
everything in test::nvTest2 will be correct
all the details picked out by VA for test::volatileTest2 are wrong or incomplete, execpt for the local var i2

class test
{
void volatileTest2(const int i1) volatile;
int volatileTest1() volatile {return 1};
void nvTest2(const int i1);
void nvTest3(const int i1);

int m_i1;
};


void test::nvTest2(const int i1)
{
int i2;
i1;
m_i1;
volatileTest1();
volatileTest2(volatileTest1());
i2;
}

void test::volatileTest2(const int i1) volatile
{
int i2;
i1;
m_i1;
volatileTest1();
volatileTest2(volatileTest1());
i2;
}

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Oct 24 2006 :  12:13:23 PM  Show Profile  Reply with Quote
Confirmed. I had to do a bit of reading before I understood the meaning of a volatile function. Learn something new every day

case=3220

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Feb 23 2007 :  02:51:10 AM  Show Profile  Reply with Quote
Case 3220 is fixed in build 1547.
Go to Top of Page

wstanley
Junior Member

20 Posts

Posted - Feb 25 2007 :  6:14:51 PM  Show Profile  Reply with Quote
Just grabbed the new build (1548) and the volatile keyword no longer seems to cause any problems.

Thank you
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