Problem with accessing environment variable from a jni dll
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ravishankar_CS
Posted On:   Thursday, August 21, 2003 03:20 AM

Hello, We have a Native-dll which is written in C++ and there is a JNI Wrapper-dll which calls the Native-dll's functions.There is a servlet which loads this Wrapper-dll and makes calls on it.That in turn will call the Native-dll. One of the functions in the Native-dll accesses system environment variables using getenv() call. The problem that is happening is that when this Native-dll function is invoked by an MFC application, it works fine but when the function is invoked from the JNI Wrapper-dll, the function fails, without returning any value. Do you have any clue regarding this behaviour. Please help !!!!!!!!! Thanks in advance, Ravishankar.    More>>

Hello,

We have a Native-dll which is written in C++ and there is a JNI Wrapper-dll which calls the Native-dll's functions.There is a servlet which loads this Wrapper-dll and makes calls on it.That in turn will call the Native-dll.
One of the functions in the Native-dll accesses system environment variables using getenv() call.
The problem that is happening is that when this Native-dll function is invoked by an MFC application, it works fine but when the function is invoked from the JNI Wrapper-dll, the function fails, without returning any value.

Do you have any clue regarding this behaviour.

Please help !!!!!!!!!

Thanks in advance,
Ravishankar.

   <<Less
About | Sitemap | Contact