Jump to content
Sign in to follow this  
furroy

DllOpen() crash

Recommended Posts

furroy

I had some scripts that call a custom DLL I wrote. Everything worked fine on several machines.

I got a new machine and copied over my project. I updated to the latest version of AutoIt3 production and tried the beta too. However, both versions immediately blow up on the DllOpen()

Global $g_dll = DllOpen(@WorkingDir & "\release\mystuff.dll")

Now I don't have access to the other machines at the moment. The version of AutoIt I was using is probably a couple years old. Any ideas what might have changed? The call stack doesn't even show my dll at all..

If I just run DllOpen("asdfasdasf.dll") it crashes in the same manner, so it acts like it can't find my DLL. I've copied to to c:\, windows, system, the local dir, etc. pretty much everywhere on the machine I can think of...

Share this post


Link to post
Share on other sites
SmOke_N

I had some scripts that call a custom DLL I wrote. Everything worked fine on several machines.

I got a new machine and copied over my project. I updated to the latest version of AutoIt3 production and tried the beta too. However, both versions immediately blow up on the DllOpen()

Global $g_dll = DllOpen(@WorkingDir & "\release\mystuff.dll")

Now I don't have access to the other machines at the moment. The version of AutoIt I was using is probably a couple years old. Any ideas what might have changed? The call stack doesn't even show my dll at all..

If I just run DllOpen("asdfasdasf.dll") it crashes in the same manner, so it acts like it can't find my DLL. I've copied to to c:\, windows, system, the local dir, etc. pretty much everywhere on the machine I can think of...

Maybe that machine needs to have the dll registered.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
furroy

Nevermind.. I think I'm just retarded. I dont' see a way to delete my post.

I think it was the first DLLCall() and that looks like changes have been made in newer versions.. I'll dig deeper..

Edited by furroy

Share this post


Link to post
Share on other sites
furroy

Looks like I just needed to add :cdecl on all my return types.

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.