Jump to content
Sign in to follow this  
birdofprey

Autoit error: Autoit has detected the stack has become corrupt...

Recommended Posts

birdofprey

but if I try to run the compiled version I get:

Autoit error

Autoit has detected the stack has become corrupt...

Local $ret = DllCall('user32.dll', 'int', 'MoveWindow', 'hwnd', $h_StatusBar, 'int', o, 'int', o, 'int', o)

edit: typo

Edited by birdofprey

Share this post


Link to post
Share on other sites
Zedna

but if I try to run the compiled version I get:

Autoit error

Autoit has detected the stack has become corrupt...

edit: typo

instead of:

Local $ret = DllCall('user32.dll', 'int', 'MoveWindow', 'hwnd', $h_StatusBar, 'int', o, 'int', o, 'int', o)oÝ÷ ÚÚò¶¬jëh×6Local $ret = DllCall('user32.dll', 'int', 'MoveWindow', 'hwnd', $h_StatusBar, 'int', 0, 'int', 0, 'int', 0)oÝ÷ ØÚ-{7«¢k¬µ·³zºÙ趫¨¶®¢ÖÄÿnØ^­è¬j[(+,x)j¶¦z׫jëh×6Local $ret = DllCall('user32.dll', 'int', 'MoveWindow', 'hwnd', $h_StatusBar, 'int', 0, 'int', 0, 'int', 0, 'int', 0)
Edited by Zedna

Share this post


Link to post
Share on other sites
GaryFrost

but if I try to run the compiled version I get:

Autoit error

Autoit has detected the stack has become corrupt...

edit: typo

should be:

Local $ret = DllCall("user32.dll", "int", "MoveWindow", "hwnd", $h_StatusBar, "int", 0, "int", 0, "int", 0, "int", 0, "int", 1)

I believe that was updated in the latest release.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
Jos

but if I try to run the compiled version I get:

Autoit error

Autoit has detected the stack has become corrupt...

edit: typo

You have o in stead of 0 and are missing parameters :

BOOL MoveWindow(HWND hWnd, int X, int Y, int nWidth, int nHeight, BOOL bRepaint)

:)


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
birdofprey

Wow ! :) Thank you all for the quickest response ever. Well, about that 0 vs o thing, sorry, I installed a new font and it tricked me. also, there were 4 "int, 0"-s... I think I should go sleeeep. here's a screenshot of the message. I looked up the line, I found it in Include\GuiStatusBar.au3, modified the last 0 to 1 acording to gafrost's advice, recompiled and... i got the same error when I tried to run it, take a look at it: post-21573-1180904374_thumb.png

what I find interesting is that the script runs fine in an uncompiled form.

Share this post


Link to post
Share on other sites
PaulIA

Wow ! :) Thank you all for the quickest response ever. Well, about that 0 vs o thing, sorry, I installed a new font and it tricked me. also, there were 4 "int, 0"-s... I think I should go sleeeep. here's a screenshot of the message. I looked up the line, I found it in Include\GuiStatusBar.au3, modified the last 0 to 1 acording to gafrost's advice, recompiled and... i got the same error when I tried to run it, take a look at it: post-21573-1180904374_thumb.png

what I find interesting is that the script runs fine in an uncompiled form.

Just use this. It will save us all a lot of headaches:

Func _API_MoveWindow($hWnd, $iX, $iY, $iWidth, $iHeight, $fRepaint=True)
  Local $aResult

  $aResult = DllCall("User32.dll", "int", "MoveWindow", "hwnd", $hWnd, "int", $iX, "int", $iY, "int", $iWidth, "int", $iHeight, "int", $fRepaint)
  Return $aResult[0] <> 0
EndFunc

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites
GaryFrost

Wow ! :) Thank you all for the quickest response ever. Well, about that 0 vs o thing, sorry, I installed a new font and it tricked me. also, there were 4 "int, 0"-s... I think I should go sleeeep. here's a screenshot of the message. I looked up the line, I found it in Include\GuiStatusBar.au3, modified the last 0 to 1 acording to gafrost's advice, recompiled and... i got the same error when I tried to run it, take a look at it: post-21573-1180904374_thumb.png

what I find interesting is that the script runs fine in an uncompiled form.

What version of AutoIt are you using?

This was fixed in the release version, pretty sure its fixed in 3.2.4.9

Edit: it was fixed back in 3.2.3.2

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
birdofprey

What version of AutoIt are you using?

This was fixed in the release version, pretty sure its fixed in 3.2.4.9

Edit: it was fixed back in 3.2.3.2

; Include Version:1.66 (17 July 2006)

Just recompiled with beta version 3.2.3.2... same thing.

Could it be my windows installation ?

Share this post


Link to post
Share on other sites
GaryFrost

Just recompiled with beta version 3.2.3.2... same thing.

Could it be my windows installation ?

Just copy the line I posted, and replace the line giving you trouble with it.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
GaryFrost

Just recompiled with beta version 3.2.3.2... same thing.

Could it be my windows installation ?

The include doesn't have a date in it anymore

; ------------------------------------------------------------------------------
;
; AutoIt Version: 3.2.3++
; Language:       English
; Description:    Functions that assist with the Statusbar control
;
; ------------------------------------------------------------------------------

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
birdofprey

Just installed the latest version of autoit, things work fine now. Sorry for bothering, but at the time this problem popped up, there was no new version yet, and didn't have the time to post until now... anyhow, 10x.

Share this post


Link to post
Share on other sites
nauip

I'm getting a similar error - here's a screenshot

Posted Image.

Here's the DLL Call being used.

Func CaptureScreen()
    
    DllCall("captdll.dll", "int", "CaptureScreen", "str", _TempFile(@ScriptDir, "", ".jpg"), "int", 70)
    Alert("Screenshot saved in ScriptDir", "NL")
EndFunc

I pretty much inherited this stuff. The guy before me loved these scripts and he's gone now. I must admit they're pretty handy, but I'm having a helluva time catching on.

I'm assuming from the pretext of this thread it has to do with the dll call.

Share this post


Link to post
Share on other sites
nauip
nevermind - I downloaded the newest version and recompiled it and this has resolved the problem. Edited by nauip

Share this post


Link to post
Share on other sites
nauip

nevermind - I downloaded the newest version and recompiled it and this has resolved the problem.

I lied - still happens... Any suggestions?

Edited by nauip

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  

×