KJohn Posted July 5, 2008 Share Posted July 5, 2008 http://svn.autoitscript.com/trac/ticket/430The summary and the following code should be enough to understand the problem. Please take any image file say "example.jpg" and put it in the same directory as the script - if the file does not exist, the crash won't occur - and your result in such a case will be without much purpose.Global Const $GUI_DISABLE = 128 Local $msg Local $tp = @TempDir Local $ginstall = GUICreate("installer",420,375) Local $b_yes = GUICtrlCreateButton ("Yes",235,335,80,26) FileInstall("example.jpg",$tp &"\top",1) Local $i_img = GUICtrlCreatePic ($tp &"\top",0,52,420,270) GuiCtrlSetState(-1,$GUI_DISABLE) ;$i_img IS NOW DISABLED GUISetState() While 1 $msg = GUIGetMsg () Switch $msg Case $b_yes GUICtrlDelete($i_img) ;CRASH AT THIS POINT GUICtrlDelete($b_yes) ExitLoop EndSwitch WEndhttp://svn.autoitscript.com/trac/ticket/430If you are a Vista user, run the above code with an example.jpg file and then press Yes. Please tell me if AutoIt crashes or not - the preferred AutoIt version for testing is 3.2.12.1. 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