Dana86 Posted August 28, 2020 Share Posted August 28, 2020 The console says nothing, I've been trouble shooting this for months and I can't figure it out... Here is what I've tried so far... Compiling sections of the program into .exes (Helped) Writing the variables into arrays then to .csv & pulling from them from each section of the program(Helped) Loading all the variables from a .csv into global Arrays & read/writing in each section of the program(made it worse) Used reducememory at the end each 1 minute and reinitialized the global variables into arrays from a .csv(Helped) There aren't any visible memory leaks in task manager & there isn't an explanation I could find anywhere. I rewrote all the variables & function executions into nested for loops & nested arrays. (Maybe helped?) Only thing I know for SURE is keeping the code as simple as possible IE less than 300 lines of code it never crashes. Anyone have any ideas? JLogan3o13 1 Link to comment Share on other sites More sharing options...
water Posted August 28, 2020 Share Posted August 28, 2020 Hard to tell without seeing your code 🤔 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
jchd Posted August 28, 2020 Share Posted August 28, 2020 Nice story. Do you have code to show? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
Zedna Posted August 28, 2020 Share Posted August 28, 2020 (edited) Add logging to file like I described for example here: Edited August 28, 2020 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Dana86 Posted August 29, 2020 Author Share Posted August 29, 2020 There's a few thousand lines of custom UDF I wrote that aren't very well documented... Everything seems to run fine & for days when compiled to .exe. I just like seeing a live console. Anyways I compiled the other 10 sections sections into .exes "fingers crossed" it won't crash! Link to comment Share on other sites More sharing options...
Skysnake Posted August 31, 2020 Share Posted August 31, 2020 Just a guess that you try to display an array variable in the MsgBox and thats why it is empty. Test for Array just before that box? Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Dana86 Posted September 4, 2020 Author Share Posted September 4, 2020 (edited) Update: I split the program up into 13 compiled .exe segments and 1 main .Au3 script running in the IDE, so I can see a main console log. The programs communicate with .txt and .csv. No memory leaks & no more crashes so far! This worked out really great for me because I can run true multicore processing off of one .exe with different arguments! 30 seconds of calculations dropped down to 5 seconds! I also took the time to make everything more scale-able with arrays! (A small section) Local $c[24];Ai Confidence Local $t[24] Local $TrgPrint[24] Local $i=0 For $ii=0 to 22 Step 2 ;~ $AiEnter=Number(GetConfig($p[$i],"AiEnter")) If $ii>11 Then $Type="Bre" Else $Type="Rev" EndIf $t[$ii]=Number(ReadTxt($p[$i]&"\AzHiTrg")) $t[$ii+1]=Number(ReadTxt($p[$i]&"\AzLoTrg")) Debug($p[$i]&"_HiPek"&$Type&": "&$c[$ii]&"%, Hi-TRG: "&$t[$ii]) Debug($p[$i]&"_LoPek"&$Type&": "&$c[$ii+1]&"%, Lo-TRG: "&$t[$ii+1]) If $t[$ii]=1 Then WriteTxt($p[$i]&"_HiPek"&$Type,$c[$ii]) Print($p[$i]&"_HiPek"&$Type&": "&$c[$ii]&"%, Hi-TRG: "&$t[$ii]) $TrgPrint[$ii]=$c[$ii] Else $TrgPrint[$ii]=0 EndIf If $t[$ii+1]=1 Then WriteTxt($p[$i]&"_LoPek"&$Type,$c[$ii+1]) Print($p[$i]&"_LoPek"&$Type&": "&$c[$ii+1]&"%, Lo-TRG: "&$t[$ii+1]) $TrgPrint[$ii+1]=$c[$ii+1] Else $TrgPrint[$ii+1]=0 EndIf $i=$i+1 If $i=6 Then $i=0 Next Edited September 4, 2020 by JLogan3o13 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