Syntax error when swiching from script view to tree view in VuGen 11

  • KM1135780
  • 14-Apr-2011
  • 03-Jun-2014

Archived Content: This information is no longer maintained and is provided "as is" for your convenience.

Summary

When switching from script view to tree view in VuGen 11 "Syntax error on line xyz near "output"" is received. A workaround it provided to overcome this issue.

Error

When switching from script view to tree view in VuGen 11  "Syntax error on line xyz near "output"" is received.

Cause

There is an issue with VuGen's parser which causes the sizeof operator to not be recognized. An example code snippet which will exhibit this problem is:

char output[64];

.......

memset(output, 0x00, sizeof(output));

This can also cause VuGen 11 to crash when adding a parameter or correlation in tree view.

Fix

In the example shown replace the sizeof() operator with a hard coded value. For example:

char output[64];

........

memset(output, 0x00, 64);