Hi,
I am running a unicode web application where data passed is in the form of MBCS. Now i am receiving 'Buffer Overrun Detected' error while connecting to CDatabase::OpenEX(). I have an application developed in VC++ (MFC).
BTW, connection string passed is in non-unicode format hence there should not be a problem in connecting to database.
One more point to notice is, I am getting this error in DEBUG mode and not in RELEASE mode.
Can anybody tell what is possibly the cause of the error
Light thrown in this regard by anybody would be a great help to me.
Thanks for your time.
Nishith

Buffer overrun in SQLDriverConnect()?
Waxxy
Hi Irena,
Well it seems to me that any _CRT library preprocessor could solve our problem. I m still searching for the solution. Meanwhile u can try finding out solution using this _CRT library. I'll post the solution as soon as i find it.
Thanks for ur time.
Nishith
Keith Brown
dolf
Following string is passed as connection string which it successfully passes with CDatabase::Connect().
"ODBC;DSN=Corporate Directory;UID= corpdiruser;WD= corpdiruser;APP=Internet Information Services;WSID=NISHITH;DATABASE=HRMSDB;Network=DBMSSOCN"
But when it comes back to same function, just after return TRUE; it fails and throws buffer overrun error. (_SECERR_BUFFER_OVERRUN)
Is there any alternative to OpenEx() method of CDatabase
Nishith
CraigBoyd
Hi Ni@#$h,
I run into a similar problem as you and am wondering if you found a solution. Could you please send me a reply to ipashche@yahoo.com
Thanks,
Irena ;-)
GinkZ182
I have got the solution to this problem. It is a known bug and so far microsoft has not resolved this issue. But now in the coming month microsoft is going to release the Fix for this issue.
For the time being fix available with me is beta version. Microsoft is going to launch somewhere near to June 2006. Before this if any body wants some information or fixing components then drop me a mail at meet2nish@gmail.com keeping the same subject line.
Thanks for your time.
Nishith
igorbaITALY
Can you post a larger code fragment That might help us analyze.
Steve