P
Peter Rabbit
Hi
I have a program that saves a quantity of data in a Jet database and then
uses the saved data by (amongst other things) performing some queries.
Access to the database is via the MFC DAO classes; the queries are done via
the CDaoQuery class, specifying the SQL string in the create method. All
database access, by the way, is from a worker thread, at the end of which I
call AfxDaoTerm to clear up.
All works fine except when I perform the same function twice in succession
without terminating the program. When I execute the function a second time,
the program crashes on the first Create Query it comes to. It crashes within
the Jet Database engine (apparently not in DAO and not throwing an
exception).
Does anyone care to hazrd a guess at what may be wrong?
Thanks
I have a program that saves a quantity of data in a Jet database and then
uses the saved data by (amongst other things) performing some queries.
Access to the database is via the MFC DAO classes; the queries are done via
the CDaoQuery class, specifying the SQL string in the create method. All
database access, by the way, is from a worker thread, at the end of which I
call AfxDaoTerm to clear up.
All works fine except when I perform the same function twice in succession
without terminating the program. When I execute the function a second time,
the program crashes on the first Create Query it comes to. It crashes within
the Jet Database engine (apparently not in DAO and not throwing an
exception).
Does anyone care to hazrd a guess at what may be wrong?
Thanks