Jump to content
Excelsior Forums
Sign in to follow this  
spectdev

SuspendThread failed with error 5

Recommended Posts

Hi,

I have an application that works fine when not compile by Excelsior JET.

However, after being compiled by JET, I get the following error when exiting from a thread that returned from a JNI call:

SuspendThread failed with error 5 (handle 638, ID 2856)

Runtime error #16183(trap)

Please, contact the vendor of this application.

Share this post


Link to post
Share on other sites

What's the  OS on which the problem appears?

Do you use a real box or virtual PC when experiencing the problem?

Windows XP SP2 virtual box and Windows XP SP3 physical  box.

Thanks.

Share this post


Link to post
Share on other sites

According to my past experience, this error might be caused by JNI misuse: please ensure that you call DetachCurrentThread before exiting from the thread.

Share this post


Link to post
Share on other sites

According to my past experience, this error might be caused by JNI misuse: please ensure that you call DetachCurrentThread before exiting from the thread.

Thanks e.v.e!

I did find on my own that the issue was indeed related to not calling DetachCurrentThread.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×