Originally posted by: Siddharth
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
Originally posted by: jan
thank you for this elegant and usful piece of code.
ReplyOriginally posted by: phani bhushan reddy
respected sir,
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.
thanking you,
i hope the best
Originally posted by: Gabor M�lyi
Thank You!
Your's programs great, and able piece of my work.
Gabor
ReplyOriginally posted by: Chetan
Your article saved me from lots of Multi threading issues I encountered due to DAO.
Thanks again.
Originally posted by: Zenon
After racking my brain for hours on end, I finally consulted CodeGuru, and voil�, the answer was there waiting for me.
Many thanks to John Bundgaard who just made my life a whole lot easier.
Originally posted by: James Johnston
Have you restarted the Visual Studio IDE?
ReplyOriginally posted by: Morten Tor Nielsen
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 scope??)
Otherwise thanks for the tip - VERY Very helpfull
Morten
ReplyOriginally posted by: Jeff Miller
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.
ReplyOriginally posted by: Steve Westgate
Looking at the help on DAO you need to add a message dispatcher routine in your threads loop.
For example
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
I had a similar problem of other programs not starting until the databse program was terminated and they then
continued to startup.
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}