roby Posted December 24, 2008 Share Posted December 24, 2008 Hi, smbody know the reason of this error : >"C:\Programmi\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\roberto\Desktop\16.05.2008-v12\Timbra.au3" /autoit3dir "C:\Programmi\AutoIt3" /UserParams +>19:28:16 Starting AutoIt3Wrapper v.1.10.1.8 Environment(Language:0410 Keyboard:00000410 OS:WIN_XP/Service Pack 3 CPU:X86) >Running AU3Check (1.54.14.0) from:C:\Programmi\AutoIt3 +>19:28:18 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Programmi\AutoIt3\autoit3.exe "C:\Documents and Settings\roberto\Desktop\16.05.2008-v12\Timbra.au3" !>19:28:36 AutoIT3.exe ended.rc:-1073741819 <------------------ ERROR >Exit code: -1073741819 Time: 20.599 This error, happen when I compile my program with autoit > 3.2.10.0.... With 3.2.10.0 all ok... What mean this error? Thank you for help... Roby Link to comment Share on other sites More sharing options...
Developers Jos Posted December 24, 2008 Developers Share Posted December 24, 2008 You have a hardcrash in your script. You will have to post the script to be able to tell what could be the reason. Jos 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...
roby Posted December 26, 2008 Author Share Posted December 26, 2008 ok, I add the script that generate the hardware error... Please run Prova.au3 and click on the button "Click here" after a window open, click on the red x.. and here is the error... If you use version 3.2.10.0 all ok... if you use maior version the program crash.. why? please help me... Thank you for help.... Robyprovaxforum.rar Link to comment Share on other sites More sharing options...
Zedna Posted December 26, 2008 Share Posted December 26, 2008 Try to replace While 1 $nMsg = GUIGetMsg(1) Switch $nMsg[1] Case $hGUI_Anagrafiche Switch $nMsg[0] Case $GUI_EVENT_CLOSE GUIDelete($hGUI_Anagrafiche) GUISetState(@SW_ENABLE, $hGUI_Main) GUISwitch($hGUI_Main) ControlFocus($hGUI_Main, '', $hToolbar_Main) EndSwitch EndSwitch Sleep(1) WEnd by While 1 $nMsg = GUIGetMsg(1) Switch $nMsg[1] Case $hGUI_Anagrafiche Switch $nMsg[0] Case $GUI_EVENT_CLOSE GUISwitch($hGUI_Main) GUISetState(@SW_ENABLE, $hGUI_Main) ControlFocus($hGUI_Main, '', $hToolbar_Main) GUIDelete($hGUI_Anagrafiche) EndSwitch EndSwitch Sleep(1) WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
roby Posted December 27, 2008 Author Share Posted December 27, 2008 Thank you for help... Nothing to do... don't work... GUIDelete($hGUI_Anagrafiche) is the command that generate the error.. but what can I do, to destroy the window? Link to comment Share on other sites More sharing options...
FireFox Posted December 27, 2008 Share Posted December 27, 2008 Thank you for help... Nothing to do... don't work... GUIDelete($hGUI_Anagrafiche) is the command that generate the error.. but what can I do, to destroy the window? Its strange that generate error.... Instead of GUIDelete you have : GUISetState(@SW_HIDE, $hGUI_Anagrafiche) WinKill("title", "") WinClose("title", "") Cheers, FireFox. Link to comment Share on other sites More sharing options...
roby Posted December 27, 2008 Author Share Posted December 27, 2008 ok... work.. but it is the right way? why GUIDelete() don't run in version > 3.2.10.0?? Link to comment Share on other sites More sharing options...
FireFox Posted December 27, 2008 Share Posted December 27, 2008 (edited) @roby And why dont you use the last AutoIt version ? Cheers, FireFox. Edited December 27, 2008 by FireFox Link to comment Share on other sites More sharing options...
roby Posted December 27, 2008 Author Share Posted December 27, 2008 I want use last version of autoit, but dont work... run 3.2.10.0 only... Link to comment Share on other sites More sharing options...
roby Posted December 28, 2008 Author Share Posted December 28, 2008 why in this case GUIDelete() crash, if I use last version of autoit? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 28, 2008 Moderators Share Posted December 28, 2008 It may be that the GUI doesn't exist before it gets to that call, you really don't have any conditions to trap otherwise. Might try this:While 1 $nMsg = GUIGetMsg(1) Switch $nMsg[1] Case $hGUI_Anagrafiche If $hGUI_Anagrafica And WinExists($hGUI_Anagrafica) Then Switch $nMsg[0] Case $GUI_EVENT_CLOSE GUIDelete($hGUI_Anagrafiche) GUISetState(@SW_ENABLE, $hGUI_Main) GUISwitch($hGUI_Main) ControlFocus($hGUI_Main, '', $hToolbar_Main) EndSwitch EndIf EndSwitch WEnd 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. Link to comment Share on other sites More sharing options...
Kip Posted December 28, 2008 Share Posted December 28, 2008 why in this case GUIDelete() crash, if I use last version of autoit?I hope it's not the last version MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
roby Posted December 29, 2008 Author Share Posted December 29, 2008 (edited) The problem exist in last version also.... I dont upgrade my software to last version.... smbody know the reason of this error? The error is generated from : Case $hToolbar_Anagrafiche Switch $code Case $TBN_BEGINDRAG $index = _GUICtrlToolbar_CommandToIndex($hToolbar_Anagrafiche, $iItem) Switch $index Case 0; nuovo $nuovo = True GUISetState(@SW_DISABLE, $hGUI_Anagrafiche) Case 1; modifica GUISetState(@SW_DISABLE, $hGUI_Anagrafiche) Case 2; stampa Case 3; elimina Case 4; Invia Case 5; esci GUIDelete($hGUI_Anagrafiche) <--------------------- ERROR GUISetState(@SW_ENABLE, $hGUI_Main) GUISwitch($hGUI_Main) ControlFocus($hGUI_Main, '', $hToolbar_Main) EndSwitch EndSwitch Why?? Edited December 29, 2008 by roby Link to comment Share on other sites More sharing options...
BrettF Posted December 29, 2008 Share Posted December 29, 2008 Code snippets will not be off much help. Try posting the whole code. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
roby Posted December 29, 2008 Author Share Posted December 29, 2008 ok.. see post #3 Link to comment Share on other sites More sharing options...
Zedna Posted December 29, 2008 Share Posted December 29, 2008 Problem may be in this combination: GUISetState(@SW_DISABLE, $hGUI_Anagrafiche) GUIDelete($hGUI_Anagrafiche) Try to comment these lines: GUISetState(@SW_DISABLE, $hGUI_Anagrafiche) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
roby Posted December 29, 2008 Author Share Posted December 29, 2008 try it... nothing.. it is a bug? what is changed from 3.2.10.0 to 3.2.12.x and 3.3??? why the same code work until 3.2.10.0 and not after? this is a big problem for me... thank you for help Link to comment Share on other sites More sharing options...
ProgAndy Posted December 29, 2008 Share Posted December 29, 2008 (edited) ... for me your code from post #3 works with v 3.3.0.0 and v3.2.13.13 -> try to reinstall Edited December 29, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
roby Posted December 31, 2008 Author Share Posted December 31, 2008 you try the code on 3.3.0.0 or not? I try it and dont work... I reistall autoit in another pc but nothing to do... I dont know.... Link to comment Share on other sites More sharing options...
roby Posted December 31, 2008 Author Share Posted December 31, 2008 nbody can solve this problem? 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