Hi pafgbs,
...
OK, I can repro this problem on my side. According to the info from the
call stack, it appears the problem happens when your MFC control calling
the AfxDaoTerm().
I think maybe you call the AfxDaoTerm() too later, when it is executed in
your control's ExitInstance(), the corresponding DAO object/reference has
already been collected by the GC. So you need to call the AfxDaoTerm() in
the MFC control's destructor, it would be OK :)
CMyCtrl::~CMyCtrl()
{
// TODO: Cleanup your control's instance data here.
AfxDaoTerm();
}
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C
www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.