Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
18 Views

vmlSetMode is not working

Hello,

I wanted to use the function vmlSetMode for c++ but the input parameter is ignored for all possible inputs. For example:

unsigned int x = vmlSetMode(VML_ERRMODE_IGNORE);
unsigned int y = vmlGetMode();

The value of x seems to be random (0xffffb2c0, 0xffffaa36, ...) and y is always different from VML_ERRMODE_IGNORE and equals x.

System infos: RedHat, Netbeans 8.0.2, Parallel Studio Composer 2016.

 Does anybody have an idea?

Thanks

 

0 Kudos
2 Replies
Highlighted
Moderator
18 Views

Mario, I am not sure understand your question. Have a look at the vmlSetMode/vmlGetMode  example?  You may find such example  into mklrootl\examples\vmlc\source\ directory. See in mode.c.  

0 Kudos
Highlighted
Employee
18 Views

Hi Mario,
I guess we need a full reproducer from you as we have tried in many combinations and it works fine.
The vmlSetMode(VML_ERRMODE_IGNORE) returns previous (default) value of mode which is: VML_HA | VML_ERRMODE_DEFAULT = 0x1A02.

The vmlGetMode() returns 0x102 which shows the effect of the change: VML_HA | VML_ERRMODE_IGNORE.

Thanks,
Nikita

0 Kudos