Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1539: volatile method problems

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
wstanley Posted - Oct 24 2006 : 01:38:19 AM
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;
}
3   L A T E S T    R E P L I E S    (Newest First)
wstanley Posted - Feb 25 2007 : 6:14:51 PM
Just grabbed the new build (1548) and the volatile keyword no longer seems to cause any problems.

Thank you
support Posted - Feb 23 2007 : 02:51:10 AM
Case 3220 is fixed in build 1547.
feline Posted - Oct 24 2006 : 12:13:23 PM
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

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