Windows is triggering a breakpoint in my program

I created a MFC Application and connect it with ODBC Database, but when I input data shows this message:

" Windows is triggering a breakpoint in x.exe
This may be due to a corruption of the heap, which indicates a bug in x.exe
or any of the DLLs its has loaded. This may also be due to the user pressing F12 while x.exe has focus.
The output window may have more diagnostic information "

BREAK CONTINUE

When I click "Continue" tha data is written to database, but what I must change in source code to not show this message.

Source:


CDatabase db;
db.Open(NULL,FALSE,FALSE,_T("ODBC;DSN=DSNbase;UID=user;PWD=pass"),FALSE);
CString cmd = L"insert into FAccounts values(17,'";
cmd = cmd + m_Username;
cmd = cmd + L"')";
db.ExecuteSQL(cmd);
Topic archived. No new replies allowed.