Click here to Skip to main content
15,913,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOnCtlColor Memory eater??? Pin
Cpt Rick19-Jan-05 3:26
Cpt Rick19-Jan-05 3:26 
AnswerRe: OnCtlColor Memory eater??? Pin
prcarp19-Jan-05 3:50
prcarp19-Jan-05 3:50 
AnswerRe: OnCtlColor Memory eater??? Pin
Roger Allen19-Jan-05 4:02
Roger Allen19-Jan-05 4:02 
GeneralRe: OnCtlColor Memory eater??? Pin
Cpt Rick19-Jan-05 6:18
Cpt Rick19-Jan-05 6:18 
GeneralCapturing logoff event in windows Pin
e_prabhu19-Jan-05 3:01
e_prabhu19-Jan-05 3:01 
GeneralRe: Capturing logoff event in windows Pin
David Crow19-Jan-05 3:08
David Crow19-Jan-05 3:08 
GeneralStrange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 2:54
Manfred Staiger19-Jan-05 2:54 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 4:07
professionalS Douglas19-Jan-05 4:07 
Manfred Staiger wrote:
Since some days the debug build of my application crashes when calling the close() and requery()
members of CDaoRecordset and when deleting all recorsets of a table in a loop, the call of delete for the last recordset crashes. Stepping into the MFC code shows that it always occurs at the same place in some code for the DFX mechanism. Since it's the same problem on all my three machines and it appeared "over night", I don't think that it is a bug in MFC. The only changes on all three machines are several service packs/security patches applied from our pc-support guys, so I think the problem is within the MS JetEngine which perhaps was affected by applied patches.

So what would you do now ???


1: All Database operations should be enclosed in try catch statements. There are a number of reasons why a data connection could fail and cause your app to crash. For starters make sure its still open before attempting to close it.

2: Why loop through an entire table to delete all of the records? A Delete query is much faster.

3: What versions of jet where you using? What versions are you using now?


Social Engineering Specialist.

Because there is no patch for human stupidity.
GeneralRe: Strange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 4:40
Manfred Staiger19-Jan-05 4:40 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 5:01
professionalS Douglas19-Jan-05 5:01 
GeneralRe: Strange problem with CDaoRecordset Pin
Manfred Staiger19-Jan-05 5:37
Manfred Staiger19-Jan-05 5:37 
GeneralRe: Strange problem with CDaoRecordset Pin
S Douglas19-Jan-05 19:00
professionalS Douglas19-Jan-05 19:00 
Generalsize from the childframe border Pin
neosun19-Jan-05 1:59
neosun19-Jan-05 1:59 
GeneralRe: size from the childframe border Pin
Antony M Kancidrowski19-Jan-05 3:39
Antony M Kancidrowski19-Jan-05 3:39 
GeneralRe: size from the childframe border Pin
Roger Allen19-Jan-05 4:04
Roger Allen19-Jan-05 4:04 
QuestionSetup HyperTerminal ?? Pin
Kabashiro19-Jan-05 1:26
Kabashiro19-Jan-05 1:26 
AnswerRe: Setup HyperTerminal ?? Pin
Antony M Kancidrowski19-Jan-05 3:43
Antony M Kancidrowski19-Jan-05 3:43 
GeneralMy bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 1:19
Emilio Garavaglia19-Jan-05 1:19 
GeneralRe: My bug or C++ bug Pin
Antony M Kancidrowski19-Jan-05 3:53
Antony M Kancidrowski19-Jan-05 3:53 
GeneralRe: My bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 4:22
Emilio Garavaglia19-Jan-05 4:22 
GeneralRe: My bug or C++ bug Pin
John R. Shaw19-Jan-05 9:39
John R. Shaw19-Jan-05 9:39 
GeneralRe: My bug or C++ bug Pin
Emilio Garavaglia19-Jan-05 20:59
Emilio Garavaglia19-Jan-05 20:59 
GeneralRe: My bug or C++ bug Pin
John R. Shaw29-Jan-05 11:07
John R. Shaw29-Jan-05 11:07 
GeneralAlter the dimensions of a metafile Pin
Dimitris Vikeloudas19-Jan-05 0:46
Dimitris Vikeloudas19-Jan-05 0:46 
GeneralRe: Alter the dimensions of a metafile Pin
Shog919-Jan-05 8:53
sitebuilderShog919-Jan-05 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.