![]() |
|
#1
|
|||
|
|||
JNI - can't get back valueHi,
I'm trying to write a program in C++ that uses JNI to call a function i have in java. The problem is when my function in java calls another function in java (which i don't have), i'm always getting back the value 0.0, but when i run the same function in java the values are correct. Let's say that my code from c++ calls the function JFunc1, and JFunc1 calls another java function JFunc2, then when i return the value of JFunc2, i'm getting 0.0 in my c++ program. What could be the problem? Thanx alot |
|||
|
#2
|
||||
|
||||
Re: JNI - can't get back valueQuote:
The problem could be that you didn't show us any code from which to debug or offer recommendations for changes. In other words, you're asking us to give you a fix without being able to see the problem, only hear what you decided was adequate to explain the problem. There are too many "things" in code that can go wrong with the implementation of a given technology, such as JNI, when used improperly that a limited explanation cannot reveal. If the code is too complex, too secret or too "big" to easily post, then write the simplest possible set of code that reproduces the problems that you're seeing and post that code. Chances are during that process, you'll discover the reason(s) and come up with a fix on your own. An explanation of what you're trying to do--without the implementation--does not help us fix the problem with your code or your understanding of how to use the technology. MxB |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 24/7/365 SUPPORT! Reseller/Shared cPanel Hosting, 99.9% uptime, 30 day money back! | apthost | Web Hosting Advertisements & Offers | 0 | 09-May-2007 16:00 |
| **Huge Sale!** Open For 6 Years - 99.9% Uptime 30 Day Money Back Guarantee | apthost | Web Hosting Advertisements & Offers | 0 | 02-Feb-2007 06:37 |
| Shapes Functions Version 2 - Arrays! | Cecil | C Programming Language | 1 | 09-Jul-2006 21:39 |
| $5 Hosting 3.5gb/40gbs!! 99.9% Uptime, 30 Day Money Back, Live Telephone/Chat Support | Xeserve | Web Hosting Advertisements & Offers | 0 | 17-Mar-2006 13:28 |
| STL list of list with jump back | AGU | C++ Forum | 0 | 22-Mar-2005 12:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The