
Strange Seeks/Memory Corruption in VB4 16Bit
Hi,
I am using VB4 16 bit under win 3.11 and encountering strange problem
while seeking a compound key in tables. I have 2 access databases and
opening then in the form_load event along with all the tables. The
problem is coming very randomly (yet there is a pattern - it occures
every 10 time). I am trying to find a specify record in a table which
has a index on a compound key. For this I have written a function which
accepts all the component of the key and seeks the record and send back
the value. I am using DAO for Access 2.0 database.
The interesting thing is the program works for some time and value of
one of the key which (String) get changed. I have doubly checked the
code and testing my self in debug mode.I found out that the value of
variable changes in a function where there is no referance to it. It is
very strange behaviour which not happening in VB4. 32 bit.
Does anyone encountered same kind of problem where memory variable's
values gets changes while running the program even though there is no
code which changes the value? I suspect the memory is getting corrupted
or there is some bug.
If someone can help me, I will be very thankful to him.
Thanks in Advance.
Regards,
Sanjay