- assigned_to: nobody --> gkunkel
When compiling and executing
the library XBase64.lib and
the program indextst.exe
with Borland CBuilder 6.0 or MicrosoftVisual C++ 6.0
the program indextst.exe creates an access violation
when trying to insert the 8250th record.
The error is created by the memcpy in the attached code.
============================
//startPos=nodeToSplit->Leaf.NoOfKeysThisNode-newNodeToSplitSize+pos+2;
// 5/29/04 gak changed the following line for index probs
startPos=nodeToSplit->Leaf.NoOfKeysThisNode-newNodeToSplitSize+pos+offset;
for( i = startPos, j = pos+1; j < newNodeSize;
i++, j++ ){
if( i < nodeToSplit->Leaf.NoOfKeysThisNode ){
memcpy( KeyBuf, GetKeyData( i, nodeToSplit ),
HeadNode.KeyLen );
============================
The code was changed on 29.05.2004 by gak. When I use
the "old" code
startPos=nodeToSplit->Leaf.NoOfKeysThisNode-newNodeToSplitSize+pos+2;
// 5/29/04 gak changed the following line for index probs
//startPos=nodeToSplit->Leaf.NoOfKeysThisNode-newNodeToSplitSize+pos+offset;
the example works perfect.
What to do ???
Lutz