logo       

red card !!!!!!!!!: msg#00104

programming.swig

Subject: red card !!!!!!!!!

Hi,

I am facing a very strange problem,
I had generated wrapper classes to c++ library to java.

I am trying to set some value using set method to a c++ object and trying to
get the same value immediately.
It returns me the pointer location rather than the value I am setting.


Sorry I do not hava c++ codes to debug into, but I proved by writing a c++
program.


What a strange world is this ?????.


Sample code shown below
{
DtActionRequestInteraction *arg1 = (DtActionRequestInteraction *) 0 ;
int arg2 ;

(void)jenv;
(void)jcls;
arg1 = *(DtActionRequestInteraction **)&jarg1;
arg2 = (int)jarg2;
(arg1)->setRequestId(arg2);
cout << "Wrapper:setRequestId " << arg2 << endl;
cout << "Wrapper: immediage requestId " << arg1->requestId() << endl;
}

sample output shown below
Wrapper:setRequestId 100
Wrapper: immediage requestId 141550272


I will appreciate if anybody can show some light to me on this problem, It is
really out of my reach.

Thanks


_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise