Jump to content

Recommended Posts

Posted

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

Posted

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....

Roby

provaxforum.rar

Posted

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
Posted

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?

Posted

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.

  • Moderators
Posted

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.

Posted (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 by roby
Posted

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

Posted (edited)

... for me your code from post #3 works with v 3.3.0.0 and v3.2.13.13

-> try to reinstall :)

Edited 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

Posted

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....

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
×
×
  • Create New...