JoachimR Posted September 29, 2015 Share Posted September 29, 2015 Does anybody have a suggestion on how I can get the reported line number (here "Line 17266") for an AutoIt runtime errorin a compiled program converted to something more useful? The line number is obviously due to the concatenation of all referencedincludes. Maybe there is a way to get a base number for the real program? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 29, 2015 Moderators Share Posted September 29, 2015 (edited) JoachimR.Use Au3Stripper with the /MergeOnly flag to get the file as passed to Aut2Exe - then the line numbers will match. See SciTE help for more full details.But better still - debug the script and prevent the error by adding some form of errorchecking code.M23 Edited September 29, 2015 by Melba23 Added advice! EmilyLove 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Graeme Posted February 19, 2016 Share Posted February 19, 2016 I got an error message on a program that has only 6692 lines of script - sent to me by a colleague. Line 12068 Error: Variable used without being declared. I tried running Au3Stripper and got the following error - ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Au3Stripper will work correctly. Where do I get this file? I got a stripped file but it deleted 11 of my functions, not all, and then complained that they weren't there.. Will the dat file fix that? Blessings Graeme Link to comment Share on other sites More sharing options...
Developers Jos Posted February 19, 2016 Developers Share Posted February 19, 2016 How did you install au3stripper and how are you running it? You haven't followed the instruction given in Melba23's post when Funcs/Variables are removed. On 9/29/2015 at 6:28 PM, Melba23 said: Use Au3Stripper with the /MergeOnly flag 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 More sharing options...
Graeme Posted February 29, 2016 Share Posted February 29, 2016 I thought I answered this... I ran Au3Stripper from within the Compile dialogue. It was already installed but it seems to lack the dat file and suggests that I get this from the website.. Graeme Link to comment Share on other sites More sharing options...
Developers Jos Posted February 29, 2016 Developers Share Posted February 29, 2016 Well, when the dat file is missing it can only mean something go missing as the installer puts it in the right spot. Try re-installing the Full SciTE version with the installer and ensure you run it with your regular account as files are copied to your %LOCALUSERDATA% directory. 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 More sharing options...
Graeme Posted February 29, 2016 Share Posted February 29, 2016 I reinstalled SciTE and reran Au3Stripper and got the following on the console. I installed and ran it in the same account. Running Au3Stripper (15.920.938.0) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: - ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Au3Stripper will work correctly. +> 0 Au3Stripper v15.920.938.0 finished merging 22142 lines of code, stripped 9659 comment lines and Merged 343 Continuation lines. +> Created:U:\Documents\*****\QA files\QuickAccess2.3.4\QuickAccess2.3.4 To strip_stripped.au3 with 12140 lines. +>12:29:13 Au3Stripper ended.rc:0 I then had 13 undefined functions which ran well in the unstripped version. When I compile without the /MergeOnly setting it compiles without error. Blessings Link to comment Share on other sites More sharing options...
Graeme Posted February 29, 2016 Share Posted February 29, 2016 I found Au3Stripper.dat in my Admin user account - to install the SciTE you have to change to user of course... I copied it to the C:\Program Files (x86)\AutoIT3\SciTE\Au3Stripper folder and it worked - better. Then I realised that the point where it was dropping functions was where I found #ce______________________________________________________________ and I changed it to #ce ______________________________________________________________ and it worked better. It only had one function dropped. Then I found #_____________________________________________________ I deleted this and now it works. I think these may have been options that used to work and now don't - at least as far as Au3Stripper is concerned - Fixed:) Thanks for all your comments! Blessings Graeme Link to comment Share on other sites More sharing options...
Tripredacus Posted February 29, 2016 Share Posted February 29, 2016 I always imagined that when the program is loaded into memory, anything that gets loaded externally is placed in there as well. Aside from includes, I mean if you are reading from another file or data source. Most of the times I ever see line numbers well beyond what is actually present in the EXE is when the program creates an array. Twitter | MSFN | VGCollect Link to comment Share on other sites More sharing options...
Developers Jos Posted February 29, 2016 Developers Share Posted February 29, 2016 Which is "only" due to the #included files being included at that exact place. 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 More sharing options...
EmilyLove Posted March 1, 2016 Share Posted March 1, 2016 On 9/29/2015 at 0:28 PM, Melba23 said: JoachimR. Use Au3Stripper with the /MergeOnly flag to get the file as passed to Aut2Exe - then the line numbers will match. See SciTE help for more full details. But better still - debug the script and prevent the error by adding some form of errorchecking code. M23 I've always wondered about this issue. Thanks for pointing this out. Link to comment Share on other sites More sharing options...
Graeme Posted March 1, 2016 Share Posted March 1, 2016 Did anyone notice that Au3Stripper handled #________________________________________ and #ce___________________________________ differently from Au2exe? Could this be classed as a bug in Au3Stripper? I know I had problems once before where the compiler would compile the program which would run but if I ran it with SciTE it would produce errors..:( This was because of lines that were #_____________________________________________________________ which were used, erroneously(?) to divide the script up, as far as I could see. Blessings Graeme Link to comment Share on other sites More sharing options...
EmilyLove Posted March 1, 2016 Share Posted March 1, 2016 Lol you double posted. If the bug does not already exist (check here and here) then report the bug. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 1, 2016 Developers Share Posted March 1, 2016 Post a reproducer so I understand the issue properly and can have a look. 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 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