IDE:"mi_cmd_var_create: unable to create variable objec

Hi all,

i am using Momentics 4.0.1
sometimes i have problem while debugging that when i click a variable in the “Variables” windows, it shows the following message:

mi_cmd_var_create: unable to create variable object

any idea what does that mean? i tried to google, but didn’t find any hints

thanks for any answer,

That happens to me all the time. I’ve been going through QNX standard support and they have offered no solution.

For me it nearly always happens when stepping through any thread but thread 1 in a multithreaded application.

Somewhere along the line the debugger seems to have been broken. I’ve pretty much gone back to print statements for debugging, which is a sorry state of affairs.

Did you guys try the gdb 6.7 available on Foundry27?

Nope, didn’t know it was available. I’ll give it a try soon to see if it fixes things. Thanks!

I already posted something about this. When big global structures are being read during debugging, this happens quite often.
I managed to get around this with enabling a >2gb pagefile and having 4gb RAM ^^ some sort of overpowered for debugging, but it works :stuck_out_tongue_winking_eye:

Yes, i found also the problem in my case.
i use an “unnamed” union, for example:

struct x
  char  a:
       short b1;
       int  b2;
    } struct_b;
       int c1;
       char  c2;
       char  c3;
    } struct_c;

if the union is given a name, it doesn’t occur anymore.