Jump to content
Sign in to follow this  

When I Call AutoItX3.dll Using Java code through JNI,My rpogram crashed,Can anybody give me some help,Thks

Recommended Posts


My application is a little complex,just like this:

main section is a windows service,with interactive mode.In this service,I use JNI to create JVM and call a ".class" File(named A.class for e.g.),In the A.class,I call B.dll with java native method; And in the B.dll,I call the AutoItX3.dll(THE HERO comes out at last,haha)

the relation is:

My Service->A.class->B.dll->AutoItX3.dll

But when I call a funtion of AutoItX3.dll(AU3_WinActive for e.g.),the service crashed.

I steped it and found that, the crash happend as the function was called.

I tried several funtions,AU3_WinActive,AU3_ControlClick and so on,the service crashed allways.

Did it happen to anyone else? Or I just use AutoItX3.dll with a wrong way?

Please help me

Thansks a lot

Share this post

Link to post
Share on other sites

I have known the problem

don't call the functions with NULL paras :)

Edited by ywybetter

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.