I put this solution in my project and its seem to work for first thread and if i invoke another thread containing AfxDaoInit from the first thread its giving runtime error
Abnormal Programme Termination but its running perfectly alright on Win2000 server but not on winME
here iam happy to get this option , to share my views/problems with you. sir i found one problem while i was using brain bench site.i didnot know about com and dcom.
i want to know about that if any chances are there for it
please specify through mail .
if my request is not glad to receive please excuse me.
i hope the best
When the thread is done with the database the database objects are closed.
That piece of code is executed in a monitor (the entrance is the lock.Lock() statement) but don't you need
a lock.Unlock() statement after the closing of the DAO objects (or does the CSingleLock unlock when you exit
A client had a problem with the DAO code crashing when used in multiple threads. There were several million
lines of code. To touch the minimal amount of code, I came up with a way to force all of the DAO calls to go
through the GUI thread. If anyone is interested in this approach, I can post the code.