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

C / C++ / MFC

 
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 
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 
sfdougl wrote:
1: Okay, so what specific error are you receiving?

There is no exception thrown. A dialog comes up saying "User breakpoint called from code at 0x778813b1". The output window of the editor shows the following messages:
HEAP[TestApp_g.exe]: Heap block at 038C8940 modified at 038C8998 past requested size of 50


sfdougl wrote:
2: Are you making sure that you have not gone past EOF? Or attempting to delete a record that does not exist?

Yes, absolutely. Everything worked fine for more than 2 years and when I make a release build it also works fine.
I made a small example which crashes as described, and works fine as release build.

//CTestClass is derived from CDaoRecordset
//m_nDefaultType member is set to dbOpenDynaset in the constructor
//m_pDatabase member is set to an open database (which contains the table "TestTable")

void CTestClass::DeleteWithLoop()<br />
{<br />
int counter=0;<br />
this->Open(AFX_DAO_USE_DEFAULT_TYPE, "TestTable", 0);<br />
if(!this->IsEOF())<br />
	{<br />
	while(!this->IsEOF())<br />
		{<br />
		counter++;<br />
		this->Delete(); //crash at last recordset<br />
		this->MoveNext();<br />
		}	<br />
	}<br />
this->Close();<br />
}



In the meantime I'm quite shure that it's a bug in the jet engine.

MS
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 
Generalerror LNK2019: unresolved external symbol &quot;public: __thiscall Pin
aj168219-Jan-05 0:44
aj168219-Jan-05 0:44 
GeneralRe: error LNK2019: unresolved external symbol &quot;public: __thiscall Pin
rrrado19-Jan-05 0:56
rrrado19-Jan-05 0:56 
GeneralScroll messages from IE Pin
Filomela18-Jan-05 23:32
Filomela18-Jan-05 23:32 

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.