Unix Technical Forum

SQLserver programming using MFC CDatabase & Crecordset.

This is a discussion on SQLserver programming using MFC CDatabase & Crecordset. within the SQL Server forums, part of the Microsoft SQL Server category; --> Hello, I am using MFC classes Cdatabase & Crecordset to open the data source & do all the updates, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 05:41 AM
Nilesh
 
Posts: n/a
Default SQLserver programming using MFC CDatabase & Crecordset.

Hello,

I am using MFC classes Cdatabase & Crecordset to open the data source
& do all the updates, everything seems to be working,
However, as soon as I try exiting the application, it gives me a trace
in the output window :
"Error: SQLFreeEnv failure ignored in CDatabase::Free()"
what does that mean? How do you get rid of it?

I thought that I didn't close the CDatabase object, so I close the
CDatabase object & then try exiting the application & it crashes
saying some kind of unhandled exception & breaks at:

RETCODE nRetCodeEnv = ::SQLFreeEnv(pDbState->m_henvAllConnections);
in Dbcore.cpp

I needed help with respect to above problems, Please let me know about
it if anybody had this kind of trouble.

Nilesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com