Thread: Today !
View Single Post
Old Jun 19, 2008, 07:25pm
Default Re: Today !
APK
APK's Avatar
Elite Member

Posts: 368
Name: The Duke of URL
Karma: APK will become famous soon enough
Quote:
Originally Posted by sepulchre View Post
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
__________________
"I'm Reese: Sgt. TechComVN38416, assigned to protect you - You've been TARGETTED FOR TERMINATION!"

Last edited by APK; Jun 20, 2008 at 07:09am.
APK is offline
Reply With Quote
View Public Profile Visit APK's homepage! Send a private message to APK