birdofprey Posted June 3, 2007 Share Posted June 3, 2007 (edited) but if I try to run the compiled version I get:Autoit errorAutoit 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 June 3, 2007 by birdofprey Link to comment Share on other sites More sharing options...
Zedna Posted June 3, 2007 Share Posted June 3, 2007 (edited) 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 June 3, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
GaryFrost Posted June 3, 2007 Share Posted June 3, 2007 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 3, 2007 Developers Share Posted June 3, 2007 but if I try to run the compiled version I get:Autoit errorAutoit has detected the stack has become corrupt...edit: typoYou 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
birdofprey Posted June 3, 2007 Author Share Posted June 3, 2007 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: what I find interesting is that the script runs fine in an uncompiled form. Link to comment Share on other sites More sharing options...
PaulIA Posted June 3, 2007 Share Posted June 3, 2007 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: 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted June 3, 2007 Share Posted June 3, 2007 (edited) 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: 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 June 3, 2007 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. Link to comment Share on other sites More sharing options...
birdofprey Posted June 3, 2007 Author Share Posted June 3, 2007 What version of AutoIt are you using?This was fixed in the release version, pretty sure its fixed in 3.2.4.9Edit: 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 ? Link to comment Share on other sites More sharing options...
GaryFrost Posted June 3, 2007 Share Posted June 3, 2007 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. Link to comment Share on other sites More sharing options...
GaryFrost Posted June 3, 2007 Share Posted June 3, 2007 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. Link to comment Share on other sites More sharing options...
birdofprey Posted June 4, 2007 Author Share Posted June 4, 2007 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. Link to comment Share on other sites More sharing options...
nauip Posted October 15, 2007 Share Posted October 15, 2007 I'm getting a similar error - here's a screenshot .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. Link to comment Share on other sites More sharing options...
nauip Posted October 16, 2007 Share Posted October 16, 2007 (edited) nevermind - I downloaded the newest version and recompiled it and this has resolved the problem. Edited October 24, 2007 by nauip Link to comment Share on other sites More sharing options...
nauip Posted October 24, 2007 Share Posted October 24, 2007 (edited) nevermind - I downloaded the newest version and recompiled it and this has resolved the problem.I lied - still happens... Any suggestions? Edited October 24, 2007 by nauip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now