Crash on DeleteAllRecords

Beatrix Willius bwillius at gmx.de
Sat Sep 23 18:23:25 CDT 2006


When doing a Cursor.DeleteAllRecords the application crashes hard  
with the following code:

'theDB is a VDatabase and is non nil
   dim theCursor as VCursor = theDB.SqlSelect("select * from  
message" , EVCursorLocation.kServerSide, EVLockType.kNoLocks,  
EVCursorDirection.kRandom)
   theCursor.DeleteAllRecords


Crash log is as follows:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000010

Thread 0 Crashed:
17  Plugin                         	0x075490c8  
Cursor_DeleteAllRecords__FP16REALobjectStruct + 240
18  main                           	0x02715658 0x2008000 + 7394904
19  main                           	0x023e1598  
DBWindow.DeleteAllRecords%%o<DBWindow> + 948
20  main                           	0x02420dac  
MainWindow.MainWindow._BrowseDeleteAll_Action%b%o<MainWindow> + 200
21  RBFramework                    	0x029d4728 0x2913010 + 792344
22  RBFramework                    	0x029bebf0 0x2913010 + 703456
23  com.apple.HIToolbox            	0x931e5554 DispatchEventToHandlers 
(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692

The Mantis issue 1852 has a project, which shows the crash. I hope  
it's something stupid, because I couldn't see a workaround.  
DeleteRecord is working as far as I can see.

The next issue (new from 2.4.2) will come tomorrow.


Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.



More information about the Valentina mailing list