Jump to content

Unknow error


roby
 Share

Recommended Posts

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

  • Developers

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

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

  • Moderators

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

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...