Help! - Using Btrieve 6.15 and Getting Error 26 on executing Btrieve function 14 "Create"
I use the same code for all of my files and everyone works except the one file with a large number of indexes and segments.
File causing trouble has 6 indexes with a total of 31 segments.
My data structures are defined as follows...
Any Ideas as to what's hapening?
Something unique to windows XP - SP2 or VB6 Perhaps?
This code did work last year and only thing I know of that's changed is Windows XP-SP2.
Any help is appreciated.
Thanks,
Lee
'Index Segment Structure
Type BTSegment
iPosition As Integer
iSize As Integer
iFlags As Integer
slCount As String * 4
sType As String * 1
sNullValue As String * 1
sReserved As String * 4
End Type
'Maximum number of Index Segments per file
Global Const MAXSEGMENTS = 48
'File Status Structure
Type BtStatus
iRecSize As Integer
iPageSize As Integer
iIndexCount As Integer
slRecordCount As String * 4
iFileFlags As Integer
sReserved As String * 2
iPreAlloc As Integer
Seg(MAXSEGMENTS) As BTSegment
End Type
Global FileStats As BtStatus
I use the same code for all of my files and everyone works except the one file with a large number of indexes and segments.
File causing trouble has 6 indexes with a total of 31 segments.
My data structures are defined as follows...
Any Ideas as to what's hapening?
Something unique to windows XP - SP2 or VB6 Perhaps?
This code did work last year and only thing I know of that's changed is Windows XP-SP2.
Any help is appreciated.
Thanks,
Lee
'Index Segment Structure
Type BTSegment
iPosition As Integer
iSize As Integer
iFlags As Integer
slCount As String * 4
sType As String * 1
sNullValue As String * 1
sReserved As String * 4
End Type
'Maximum number of Index Segments per file
Global Const MAXSEGMENTS = 48
'File Status Structure
Type BtStatus
iRecSize As Integer
iPageSize As Integer
iIndexCount As Integer
slRecordCount As String * 4
iFileFlags As Integer
sReserved As String * 2
iPreAlloc As Integer
Seg(MAXSEGMENTS) As BTSegment
End Type
Global FileStats As BtStatus