Hi,
First of all, thanks for
your answer, and after further research on that problem, I came to
believe that some CVIXML Functions are doing wrong things. My guess is that I want to
pass local variables, by reference, to the library function, those functions may not have been
designed this way.
Then I attached the
library's source code to my project, and I did a step by step debug. As
I have to continue my work, and can't spent too much time on that (that's why I posted on forums,
actually), I can't go further and validate of my hypothesis. But I found out that the functions do
actually reset the referenced variables, and that those references are being kept in static functions.
So now, I think I know
*where* my variables are being resetted, but I can't explain why and
when.
I mean, though the xmlget_* functions I wrote are calling some functions that call the static functions,
it seems that care has been taken while writing the static functions, and they should'nt do wrong with
my variables, even if declared locally.
So, as a conclusion, I'll
say that my local variables are getting for some reason out of scope in
some libraries functions, and get resetted as a side effect of those functions not being able to work
on them. Then, the most likely solution which came obviously to me, was to use the heap, and just
manually allocate those variables, to get rid of any scope problem... Though doing a malloc(sizeof(int));
sounds pretty weird to me
😛
I'll be glad to hear what you think of that,
if my reasoning is right, or if am I completelly out...
Thanks,
--
Bernard Pratz
IT Developer
Engineering service
Chelton Telecom & Microwave