1.9.8 sqlselect bug?

jda jda at his.com
Tue Aug 5 10:43:07 CDT 2003


Ruslan,

I think I may have found a bug in 1.9.8 final (with RB 5.2.1).

I do a search of my database:

   myCursor = myDatabase.SQLSelect(query, kServer, kReadWrite)

I modify the records in the cursor (OK) then nil it:

myCursor = nil

Then I do another search:

   myCursor = myDatabase.SQLSelect(query, kServer, kReadOnly)

This leads to the following crash in OS X:

Thread 0 Crashed:
  #0   0x00feb410 in 0xfeb410
  #1   0x00fd2b10 in OBL_CursorTable_Indirect::UnlockRecords(void)
  #2   0x00fd0f00 in OBL_CursorTable_Indirect::_dt(void)
  #3   0x00f50b3c in OBL_Cursor::_dt(void)
  #4   0x00f52284 in VDK_Cursor::_dt(void)
  #5   0x00f41fe8 in 
SqlSelect__12VDK_DataBaseFPCc15ECursorLocation9ELockType16ECur
  #6   0x00eaa778 in 
DataBase_SqlSelect_aux__FP16REALobjectStructP16REALstringStruc
  #7   0x00eaa660 in DataBase_SqlSelect4(REALobjectStruct *, 
REALstringStruct *, int, int)
  #8   0x001f6318 in 0x1f6318
  #9   0x001e3ed0 in 0x1e3ed0
  #10  0x003f9520 in 0x3f9520
  #11  0x003df984 in 0x3df984
  #12  0x00adafbc in 0xadafbc
  #13  0x00a9419c in 0xa9419c
  #14  0x00a89ed4 in 0xa89ed4
  #15  0x00a89d1c in 0xa89d1c
  #16  0x00a89cac in 0xa89cac
  #17  0x00b26d0c in 0xb26d0c
  #18  0x00aa0c18 in 0xaa0c18
  #19  0x00b61608 in 0xb61608
  #20  0x00afda8c in 0xafda8c
  #21  0x00afd408 in 0xafd408
  #22  0x00afb7f0 in 0xafb7f0
  #23  0x00afba44 in 0xafba44
  #24  0x00af8200 in 0xaf8200
  #25  0x0019b914 in 0x19b914
  #26  0x90278684 in CCFM_LaunchApplication
  #27  0x0000362c in main
  #28  0x0000329c in _start
  #29  0x0000311c in start

The weird thing is that this crashes with a large database, but not a 
small one! I've rebuilt the database, reindexed it, and it still 
crashes.

Any ideas?

Jon


More information about the Valentina mailing list