Hello,
I have been experiencing crashes and code corruption in my project
(vbe6.dll; a decompile fixes the corruption); for the life of me I
cannot figure out why, and I can't pin down the offending code because
each crash immediately shuts down the database and forces me to
recompile in order to open it again. I am following proper coding
procedures, e.g. creating and destroying objects properly (AFAIK),
closing adodb recordsets before reusing them, etc.. Are there any
guidelines for avoiding code corruption, or is it just a crap-shoot?
I thought perhaps techniques I am using are not proper, such as
executing all my in-code queries via 'recordset = connection.Execute
SQL text' (instead of calling a precompiled query in the queries
collection - even complex queries, with multiple joins); re-using
recordset objects; using err.Raise extensively; reDimming arrays who's
size I don't know at compile time.
I've also created a class to implement a key/value hash, which I pass
to one function via a parameter array (I don't know how many hashes I
need at compile time).
Does anyone have any insight/guidelines regarding how to prevent code
corruption?
Thanks you immensely.
-Robert Waters