Jump to content

Compile problem - after updateing SciTE components


mLipok
 Share

Recommended Posts

On 26.08.2013 at 3:20 PM, trancexx said:

You have to exclude C:\Users\user\AppData\Local\AutoIt v3\Aut2Exedirectory.

Add this to your AV software to exclusion list.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

  • Developers

So what exactly are you adding to the program resources and what is the exact error you get? 
Show some SciTE console output and the popup msgbox you get.

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

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 :)

Link to comment
Share on other sites

  • Developers

Please show all output from the SciTE output pane so I can see what is happening and what you are using.

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

  • Developers

The Edit will appear only when you reached the next group level ( i believe)

Don't use the AutoIt3Wrapper.exe, but rather upgrade to the latest AutoIt3Wrapper version to avoid getting errors like this.

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

Next Level, okay I will wait.

 

11 minutes ago, Jos said:

Don't use the AutoIt3Wrapper.exe,

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
://////=__=
://////=__=
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???

Link to comment
Share on other sites

  • Developers

So you added a sleep(2000) between the last adding of a resource and the finalisation of the resourse update and things are running fine.... right?

This still means that there is another process checking the file, which in 99% of the cases is the AV software interfering. What is the shortest sleep time that is working for you?

5 minutes ago, HHS said:

 

26 minutes ago, Jos said:

Don't use the AutoIt3Wrapper.exe,

What is the alternative? I use the newest version from the official website.

 

You aren't running AutoIt3Wrapper.exe but rather  autoit3.exe with AutoIt3Wrapper.au3 as input ... as you can see ... so you should be fine. ;)

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

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.

Link to comment
Share on other sites

  • Developers

There still is a process that is messing  with the file being processed on your computer.
I would be happy to add a 500ms sleep there if that would avoid issues like this.

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

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

 

Link to comment
Share on other sites

  • Developers

Either way, I have added the 500 ms sleep and uploaded a new Beta of AutoIt3Wrapper, so you could start using that and see if that works fine now. 

Thanks for the testing checking and reporting all of this. :)

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

  • Developers
1 minute ago, HHS said:

Where can I find the new Wrapper-File?

See my Signature for a link to the Beta location. ;)

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

  • 2 weeks later...

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\Aut2Exedirectory

Edited by HHS
Link to comment
Share on other sites

Thanks for this news. 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

  • 8 months later...

I may be 'tardy to the party' (and a noob) but I solved the "unable to add resources" problem (that prevented the compile process from completing) by setting the Execution Level to "highestAvailable" in the Resource Update tab.  I also changed the Language to Engligh US (for some reason it was set to "Enligh UK" (the gall) and added "1.0.0" to the FileVersion field though I doubt they had any effect.

 

If I'm late or crazy, please feel free to ignore or delete.

 

:)

 

Link to comment
Share on other sites

  • Developers
4 minutes ago, MoiLeTrois said:

If I'm late or crazy,

You want a honest opinion? :)
Ok.. before doing so let me ask a question: Why do you think this is solving the root issue as that also is an update in the resources of the program, but only a different section?

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

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

×
×
  • Create New...