Change in True/False Evaluation?
Richard T.
Tucson, AZ

Oct 31, 2013
2 Posts

Change in True/False evaluation?

I recently came accross a project that was not used for 18 months and it now currently fails a test that was verified with probes to be working properly. The code was compiled in ATEasy 6 and had been using that runtime engine. Recently we upgraded to ATEasy 8 and the coressponding runtime engine. Knowing this, I recompiled the code for ATEasy 8, however the failure still occurs.

After debugging I found the dll I was interfacing with was populating a boolean value with 0 for FALSE and 1 for TRUE. ATEasy has -1 for TRUE and 0 for FALSE. Since this used to work, I think the ATEasy runtime engine changed the assembly code from a TRUE = Not Zero to a TRUE = -1 test leaving FALSE to be anytime that test fails.

I looked through all of the ATEasy Readme file and I could not find any mention of how a bool value is interpreted for TRUE FALSE.

DrATEasy (Ron Y.)
Mission Viejo,

Nov 1, 2013
235 Posts

Re: Change in True/False evaluation?

Did the bool value was set by a DLL/COM function Var parameter?

Richard T.
Tucson, AZ

Nov 1, 2013
2 Posts

Re: Change in True/False evaluation?

Yes.

I have a ATEasy driver that then interfaces with another company's DLL where I am using a procedure as defined by:

Procedure (Val DWord, Val Long, Var Bool, Var DWord, Var DWord)


Solution Available
DrATEasy (Ron Y.)
Mission Viejo,

Nov 1, 2013
235 Posts

Re: Change in True/False evaluation?

That is an issue that was introduced in v8 and will be fixed in the next build 148d.
In v6 Var Bool  was normalized to 0/-1 on the return. This code was omitted by mistake in v8. We will bring it back in 148d.
Thanks for the report.

DoubleM (Moti M.)
Haifa,

Jan 28, 2014
13 Posts

Re: Change in True/False evaluation?

where can I find the 148d build?



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]