LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

C99-Question

hi all,

have some problems with giving back pointers from inside of functions if I use C99. the kernel seems to be:

fct(Object** o)
{
*o=malloc(sizeof(Object));
}

doesnt give a correct pointer back. a little project (some lines of code) are attached. it runs ok without C99 but crashes with C99. does anybody know why ???

best regards

simon
0 Kudos
Message 1 of 3
(3,090 Views)

Is the behaviour the same in Debug and Release builds?

 

JR

0 Kudos
Message 2 of 3
(3,081 Views)
hi,

its creazy, after a reboot it runs in C and C99 in both configurations. but this behaviour also sometimes appeared in other projects. think CVI has a problem there.

best regards

Simon
0 Kudos
Message 3 of 3
(3,077 Views)