Jump to content

HHS

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by HHS

  1. Hello, I have found a "bug" in array.au3 in the function _ArrayBinarySearch(). Summary: Not possible to get the correct index of an element when use "ß", they found always "ss". Here a little Test-Script: #include <Array.au3> Local $Array[6] = ["a_ausser", "a_außer", "b_ausser", "b_außer", "c_ausser", "c_außer"] _ArraySort($Array, 0, 0) For $i=0 to UBound($Array)-1 ConsoleWrite("Index " & $i & ": " & $Array[$i] & @CRLF) Next ;BinarySearch ConsoleWrite("BinarySearchIndex: " & _ArrayBinarySearch($Array, "b_außer", 0) & " <-- must be Index 3 - b_außer" & @CRLF) ConsoleWrite("BinarySearchIndex: " & _ArrayBinarySearch($Array, "b_ausser", 0) & " <-- must be Index 2 - b_ausser" & @CRLF) Output: --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop Index 0: a_ausser Index 1: a_außer Index 2: b_ausser Index 3: b_außer Index 4: c_ausser Index 5: c_außer BinarySearchIndex: 2 <-- must be Index 3 - b_außer BinarySearchIndex: 2 <-- must be Index 2 - b_ausser +>09:35:08 AutoIt3.exe ended.rc:0 Here is the wrong item with Index 2 found, but I search for item 3 now HERE my little bugfix in __ArrayBinarySearch(): #include <Array.au3> Local $Array[6] = ["a_ausser", "a_außer", "b_ausser", "b_außer", "c_ausser", "c_außer"] _ArraySort($Array, 0, 0) For $i=0 to UBound($Array)-1 ConsoleWrite("Index " & $i & ": " & $Array[$i] & @CRLF) Next ;BinarySearch ConsoleWrite("BinarySearchIndex: " & __ArrayBinarySearch($Array, "b_außer", 0) & " <-- must be Index 3 - b_außer" & @CRLF) ConsoleWrite("BinarySearchIndex: " & __ArrayBinarySearch($Array, "b_ausser", 0) & " <-- must be Index 2 - b_ausser" & @CRLF) ; #FUNCTION# ==================================================================================================================== ; Author ........: Jos ; Modified.......: Ultima - added $iEnd as parameter, code cleanup; Melba23 - added support for empty & 2D arrays ; =============================================================================================================================== Func __ArrayBinarySearch(Const ByRef $aArray, $vValue, $iStart = 0, $iEnd = 0, $iColumn = 0) If $iStart = Default Then $iStart = 0 If $iEnd = Default Then $iEnd = 0 If $iColumn = Default Then $iColumn = 0 If Not IsArray($aArray) Then Return SetError(1, 0, -1) ; Bounds checking Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) If $iDim_1 = 0 Then Return SetError(6, 0, -1) If $iEnd < 1 Or $iEnd > $iDim_1 - 1 Then $iEnd = $iDim_1 - 1 If $iStart < 0 Then $iStart = 0 If $iStart > $iEnd Then Return SetError(4, 0, -1) Local $iMid = Int(($iEnd + $iStart) / 2) Switch UBound($aArray, $UBOUND_DIMENSIONS) Case 1 If $aArray[$iStart] > $vValue Or $aArray[$iEnd] < $vValue Then Return SetError(2, 0, -1) ; Search While $iStart <= $iMid And Not ($vValue == $Array[$iMid]) If $vValue < $aArray[$iMid] Then $iEnd = $iMid - 1 Else $iStart = $iMid + 1 EndIf $iMid = Int(($iEnd + $iStart) / 2) WEnd If $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found Case 2 Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 If $iColumn < 0 Or $iColumn > $iDim_2 Then Return SetError(7, 0, -1) If $aArray[$iStart][$iColumn] > $vValue Or $aArray[$iEnd][$iColumn] < $vValue Then Return SetError(2, 0, -1) ; Search While $iStart <= $iMid And Not ($vValue == $aArray[$iMid][$iColumn]) If $vValue < $aArray[$iMid][$iColumn] Then $iEnd = $iMid - 1 Else $iStart = $iMid + 1 EndIf $iMid = Int(($iEnd + $iStart) / 2) WEnd If $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found Case Else Return SetError(5, 0, -1) EndSwitch Return $iMid EndFunc ;==>_ArrayBinarySearch Output: --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop Index 0: a_ausser Index 1: a_außer Index 2: b_ausser Index 3: b_außer Index 4: c_ausser Index 5: c_außer BinarySearchIndex: 3 <-- must be Index 3 - b_außer BinarySearchIndex: 2 <-- must be Index 2 - b_ausser +>09:37:17 AutoIt3.exe ended.rc:0 Here is the correct item with Index 3 found. Only two lines have little changes: line 25 in function: Original: While $iStart <= $iMid And $vValue <> $Array[$iMid] FIX: While $iStart <= $iMid And Not ($vValue == $Array[$iMid]) line 39 in function: Original: While $iStart <= $iMid And $vValue <> $aArray[$iMid][$iColumn]) FIX: While $iStart <= $iMid And Not ($vValue == $aArray[$iMid][$iColumn]) Please check my little bugfix and check in in the repository for the next release.
  2. G DATA have found the problem and can reproduce the problem in there laboratories. In the next program update, that problem will be solved. Edit: In the next version will be working: exclude C:\Users\"user"\AppData\Local\AutoIt v3\Aut2Exe\ directory
  3. Ah, okay. This is a G Data Service, I can not disable stupid question: Where can I find the new Wrapper-File?
  4. You have right. The Process name is: AVKWCtlx64.exe and called G Data Filesystem Monitor Service. This process is the last process with access to the TMP-File (check with ProcMon from SysInternals) when the Error Promp pop up. I have no idea, where I can configure this process. I have add the exclusion path, I have disable all components I can configure in the G Data Internet Security GUI. Really all components, AntiVirus-, Heuristik-, Firewall-, Web-, Mail-, Spam-, BankGiard-, Keylogger-, Exploit-, Malware-, Phishing-, USB-Protection. This process is running...
  5. Yes, I use SciTE buildIn function to compile (F7) I have add the path C:\Users\Marco\AppData\Local\AutoIt v3\Aut2Exe\ to AntiVirus. I have disable all components of GDATA InternetSecurity. On alll the same error: LastError:110 Yes, correct. Direct before the line: Local $result = DllCall("kernel32.dll", "int", "EndUpdateResourceW", "ptr", $rh, "int", 0) The smallest time without error are 100ms. With 75ms I have rounded 1/4 with error.
  6. Next Level, okay I will wait. What is the alternative? I use the newest version from the official website. So, here my little test script: #AutoIt3Wrapper_Icon=..\..\..\..\AutoIt\Programme\AutoIt3\Aut2Exe\Icons\AutoIt_Main_v10_256x256_RGB-A.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_UseUpx=y #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_Res_Comment=Marco #AutoIt3Wrapper_Res_Description=Marco #AutoIt3Wrapper_Res_Fileversion=0.16.5.41 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_LegalCopyright=Marco #AutoIt3Wrapper_Res_Language=1031 #AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer% #AutoIt3Wrapper_Res_Field=Compile Date|%date% %time% Sleep(1000) and the ERROR: >"S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE\..\AutoIt3.exe" "S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3" +>19:31:21 Starting AutoIt3Wrapper v.16.306.1237.12 SciTE v.3.6.2.0 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0407) CodePage:0 utf8.auto.check: +> SciTEDir => S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE UserDir => C:\Users\Marco\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Marco\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.2) from:S:\Programmierung\AutoIt\Programme\AutoIt3 input:S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3 +>19:31:21 AU3Check ended.rc:0 >Running:(3.3.14.2):S:\Programmierung\AutoIt\Programme\AutoIt3\aut2exe\aut2exe_x64.exe /in "S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3" /out "C:\Users\Marco\AppData\Local\AutoIt v3\Aut2exe\~AU39F4.tmp.exe" /nopack /icon "..\..\..\..\AutoIt\Programme\AutoIt3\Aut2Exe\Icons\AutoIt_Main_v10_256x256_RGB-A.ico" /comp 4 /Console /x86 +>19:31:22 Aut2exe.exe ended.C:\Users\Marco\AppData\Local\AutoIt v3\Aut2exe\~AU39F4.tmp.exe. rc:0 >19:31:22 Performing the Program Resource Update steps: ...>Updating Program Version information. !>19:31:22 Error: EndUpdateResource: Returncode = 0 - LastError:110:Das System kann das angegebene Gerät oder die angegebene Datei nicht öffnen.rc:2 !>19:31:22 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2 +>19:31:24 Created program:S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.exe -Updated the Source Version to:0.16.5.41 +>19:31:24 AutoIt3Wrapper Finished. >Exit code: 0 Time: 3.608 And with the little modified AutoItWrapper: >"S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE\..\AutoIt3.exe" "S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3" +>19:38:19 Starting AutoIt3Wrapper v.16.306.1237.13 SciTE v.3.6.2.0 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64 Environment(Language:0407) CodePage:0 utf8.auto.check: +> SciTEDir => S:\Programmierung\AutoIt\Programme\AutoIt3\SciTE UserDir => C:\Users\Marco\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Marco\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.2) from:S:\Programmierung\AutoIt\Programme\AutoIt3 input:S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3 +>19:38:19 AU3Check ended.rc:0 >Running:(3.3.14.2):S:\Programmierung\AutoIt\Programme\AutoIt3\aut2exe\aut2exe_x64.exe /in "S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.au3" /out "C:\Users\Marco\AppData\Local\AutoIt v3\Aut2exe\~AU99C0.tmp.exe" /nopack /icon "..\..\..\..\AutoIt\Programme\AutoIt3\Aut2Exe\Icons\AutoIt_Main_v10_256x256_RGB-A.ico" /comp 4 /Console /x86 +>19:38:20 Aut2exe.exe ended.C:\Users\Marco\AppData\Local\AutoIt v3\Aut2exe\~AU99C0.tmp.exe. rc:0 >19:38:20 Performing the Program Resource Update steps: ...>Updating Program Version information. ...>sleeping 2000ms for FileChecks - without sleeping --> LastError:110 >19:38:22 Program Resource updating finished successfully. >Running:(3.91.0.0):S:\Programmierung\AutoIt\Programme\AutoIt3\aut2exe\upx.exe" --best --compress-icons=0 --keep-resource=10/SCRIPT "C:\Users\Marco\AppData\Local\AutoIt v3\Aut2exe\~AU99C0.tmp.exe" Ultimate Packer for eXecutables Copyright (C) 1996 - 2013 UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013 File size Ratio Format Name -------------------- ------ ----------- ----------- 924160 -> 446976 48.37% win32/pe ~AU99C0.tmp.exe Packed 1 file. +>19:38:23 UPX Ended: rc:0 +>19:38:23 Created program:S:\Programmierung\Scripte\_am Entwickeln\Movie DB Info\_GENUTZTES\test.exe -Updated the Source Version to:0.16.5.42 +>19:38:24 AutoIt3Wrapper Finished. >Exit code: 0 Time: 5.475 Interesting, with error the upx not running. What is that: ???utf8.auto.check???
  7. where is the edit-function for my last post? Please add: With the modified AutoItWrapper.exe it working with activated Wrapper directives.
  8. With these commented lines in my script.au3 - I get the error with complete disabled VirusScanner: ;~ #AutoIt3Wrapper_Icon=..\..\..\..\AutoIt\Programme\AutoIt3\Aut2Exe\Icons\AutoIt_Main_v10_256x256_RGB-A.ico ;~ #AutoIt3Wrapper_Res_Comment=Marco ;~ #AutoIt3Wrapper_Res_Description=Marco ;~ #AutoIt3Wrapper_Res_Fileversion=0.16.05.8 ;~ #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y ;~ #AutoIt3Wrapper_Res_LegalCopyright=Marco ;~ #AutoIt3Wrapper_Res_Language=1031 ;~ #AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer% ;~ #AutoIt3Wrapper_Res_Field=Compile Date|%date% %time% Error: EndUpdateResource: Returncode = 0 - LastError:110:Das System kann das angegebene Gerät oder die angegebene Datei nicht öffnen.rc:2 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2 First compile it working great. second/third/... compile I get the error. I must change the script every time, than I can compile without error. when I delete the lines complete out of my script.au3, it is working fine on every compile. The Stuff: I have added these line in AutoItWrapper.au3 near 2530 and make a new AutoItWrapper.exe: added: Write_RC_Console_Msg("sleeping 2000ms for FileIsAvailableChecksOrWhatElseTheSystemMissing", "", "...", 0) added: Sleep(2000) before ORIGINAL: Local $result = DllCall("kernel32.dll", "int", "EndUpdateResourceW", "ptr", $rh, "int", 0) After this little change it working wonderfull, with and without AntiVirus on highest scann level
  9. No, It is not working. I have add the complete path, same problem LastError110 I can disable the complete VirusScanner, no change, same problem.
  10. I have the same problem with the actual production and beta versions. Windows 7 x64 with GData Anti Virus. I can disable GData but the problem is not resolved.
×
×
  • Create New...