Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Call to NewStringUTF leading to crash

843829Mar 24 2003 — edited Apr 29 2003
Hi All ,

Can anyone tell me , whether a call to NewStringUTF() would lead to a crash ? .

(*jnienv)->NewStringUTF(jnienv, dst))

[ I am giving 'dst' is in UTF8 format ] . If it cannot allocate memory, then shouldn't it just return NULL ?

The problem is that it is crashing only after a certain number of calls , not the first time . Is it because the 'jnienv' variable is getting corrupted ?

Thanks in advance for any help
Ratheesh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2003
Added on Mar 24 2003
4 comments
1,316 views