|
red card !!!!!!!!!: msg#00104programming.swig
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> |
|---|---|---|
| Previous by Date: | generating python functions with named parameters: 00104, David Beazley |
|---|---|
| Next by Date: | (no subject): 00104, Devender Marri |
| Previous by Thread: | generating python functions with named parametersi: 00104, Mike Lin |
| Next by Thread: | typenames.i, double * and python: 00104, pav_ml |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |