I am developing a object-oriented application and use programming C++ in
qnx4.24.
I need to develop an class where its methods are different processes,
that they need have to access the same attribute (variable) of the class. I
decided to use the feature of shared memory, however I have not had success.
I find that the reason is the mode as the attributes of the class are
called. I declared the attribute as " volatile float attribute".
I made some attempts without success. One that me seemed interesting to
illustrate the problem was the following one:
I did not use object-oriented programming C++. I created a program in
standard language C and the previous methods had been transformed into
functions. I used memory shared and in the end the great surprise: when I
compiled the program with compiler C, the program functioned. Already when I
compiled with the compiler C++, I got same the previous errors when it was
using object-oriented class.
Please, somebody already had some similar experience? Somebody can help
me? I do not know more what to make…
Gustavo.
…but please don’t crosspost
Markus
“Gustavo André” <gandre@usp.br> wrote in message
news:9frc7t$6nt$1@inn.qnx.com…
I am developing a object-oriented application and use programming C++
in
qnx4.24.
I need to develop an class where its methods are different processes,
that they need have to access the same attribute (variable) of the class.
I
decided to use the feature of shared memory, however I have not had
success.
I find that the reason is the mode as the attributes of the class are
called. I declared the attribute as " volatile float attribute".
I made some attempts without success. One that me seemed interesting
to
illustrate the problem was the following one:
I did not use object-oriented programming C++. I created a program in
standard language C and the previous methods had been transformed into
functions. I used memory shared and in the end the great surprise: when I
compiled the program with compiler C, the program functioned. Already when
I
compiled with the compiler C++, I got same the previous errors when it was
using object-oriented class.
Please, somebody already had some similar experience? Somebody can
help
me? I do not know more what to make…
Gustavo.
\