Sign in to follow this  
Followers 0
roby

Unknow error

22 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

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

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

ok... work.. but it is the right way?

why GUIDelete() don't run in version > 3.2.10.0??

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

@roby

And why dont you use the last AutoIt version ?

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

I want use last version of autoit, but dont work... run 3.2.10.0 only...

Share this post


Link to post
Share on other sites

why in this case GUIDelete() crash, if I use last version of autoit?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#13 ·  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

Share this post


Link to post
Share on other sites

ok.. see post #3

Share this post


Link to post
Share on other sites

Problem may be in this combination:

GUISetState(@SW_DISABLE, $hGUI_Anagrafiche)
           GUIDelete($hGUI_Anagrafiche)

Try to comment these lines:

GUISetState(@SW_DISABLE, $hGUI_Anagrafiche)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#18 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

nbody can solve this problem? :)

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  
Followers 0