Sign in to follow this  
Followers 0
komalo

Error: AutoIt has detected the stack has become corrupt

6 posts in this topic

when i try to make a dll call this messege appears

Error: AutoIt has detected the stack has become corrupt

here is the code

dllCall("user32.dll", "int", "SendMessage", "long", 0xffff, "long", 0x1a, "long", 0x2a)

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites



That means that one or more of the parameter types you are using is incorrect. In this case, I believe that the parameter types should match

LRESULT SendMessage(

HWND hWnd,

UINT Msg,

WPARAM wParam,

LPARAM lParam

);

and in the very least, those values are not "long".

Share this post


Link to post
Share on other sites

well i took it from here http://www.autoitscript.com/forum/lofivers...php?t15343.html

and in last replay someone said it works Perfectly

all i am trying to do is rebuilding icon cache


[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have no idea how that would work. The first parameter is a window handle, the second is an unsigned integer, and I forget what wparam and lparam are. I think they are DWORD* but I can't recall. Those aren't long.

Wait, part of your problem is that you don't even have enough parameters. I just noticed you only have three parameters. SendMessage needs 4.

First, why don't you try _SendMessage from the UDFs instead of your own DllCall, so the types are correct. You also need to figure out which parameter is missing.

Edited by Richard Robertson

Share this post


Link to post
Share on other sites

Glad to help.

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  
Followers 0