Quote:
Originally Posted by sepulchre
Recursive iteration is the basis of all fractal generation programs. It's also employed in compression routines.
|
Yup, agreed, & the problem's NOT the recursion (no memory exhaustion, etc. over 1.5 million line entries thusfar @ least), @ this point... the recursive function's working, perfectly now in fact...
Now though? Well, it's an "out of bounds" array error!
This should be easy enough to cure, because of the controls I use... I keep the selected item visible, in listboxes I use (for now, during debug @ least, Until I no longer need it & then the GUI overhead of the app WILL go down, because I won't need it visible anymore)
(See - I use listboxes as "dynamic arrays"! A 'hack' no doubt, but one that does the job with a WEE bit of GUI overheads is all, & makes for far easier VISUAL debugging imo, as I can literally SEE where the function is, as it vectors thru/iterates thru the array/listboxes' items)
Listboxes: They function PRETTY MUCH just the same as a VB Dim/ReDim Preserve type thing for dynamic arrays (though Delphi has this as well, TRUE dynamic arrays, & since version 4.0 iirc? I still use listbox controls as dynamic arrays - since they're GREAT for visual debugs, for lack of a better expression & better than a ShowMessage or Application.Messagebox type affair (or even watch windows on a var, struct, etc.)).
It's going to work, it will just take time 'tracing'...
* Wish me luck, because it overcomes a LOT of hassles that Access gave me, for normalization (removal of dups) via SQL "SELECT DISTINCT" queries... which, upon exports? Left trailing spaces OR quotes around exported data!
That made the structure of the HOSTS file 'bloated' (especially the trailing space after IP(singlespace)URL(cr+lf) <- where Access exports left that trailing 'space' right after the enter keypress (cr+lf)).
Might not seem like much to '***** about' on my part, but, over 1.5million entries? That single-space Access leaves for instance, at the end of EACH LINE in my HOSTS file??
It adds up to bloat... bloat I don't need, nor does anyone (wasteful, inefficient, & imo? STUPID!) - it's literally the SAME reasoning I have for using 0.0.0.0 in a HOSTS file for blocking, vs. 127.0.0.1 - same function @ less cost in loadtime + memory occupancy... smarter, & MORE EFFICIENT, period (a better overall structure & ESPECIALLY over TONS of line item entries, which adds up in a hurry).
APK