hi , I've write a procedure which will store some data inside a structure and the I will pass the structure to other procedure like below
slotUpdate(Datas);
whereas I've defined the structure like :
someNameSpace::stuData Datas;
after passing the structure to slotUpdate again I'll pass it to another procedure but this time as a parameter and as (void *) like following :
updateDB(void * parameter){
anotherNameSpace::someFucntion((stuData *) parameter);
}
note : I pass the Datas to updateDb such this : updateDB(&Datas);
and into someFunction when I try to retrieve a data from this structure I'm not successful and I will get wrong data , something garbage :-?
what is my problem here?