hello friends,
I am stuck with a problem in QNX environement,
Problem
there are 3 layers in the entire software
layer 1, layer 2, layer3
From the layer1 i will be getting a void * as a parameter to a function.
From the layer2 I pass this void * to the layer 3. In the layer 3 I dynamically allocation space for a structure x, to the void pointer. But the problem is as long as the control is in the layer 3 the void * pointer is able to hold the allocated address, as soon as the control comes to the layer 2 or 1, the address is lost and it becomes 0, being a pointer that is passed as a paramter shouldnt it retian the address?
can any one please help me understand this concept.
besdt regards
shashidhar