main logo
Subject: Re: OS X crash on calling a method
Author: jda
Posted: 2001/11/30 12:16:21
 
View Entire Thread
New Search


Ruslan, I've got another crash on X due to Valentina.

Try this on X with the project I sent you:

1. Make a db with one record.
2. Refs menu -> delete reference
3. Confirm it is This Reference, and go ahead with delete
4. Crash

Here's the code:

if totalRefNumber = 1 then -- yes, it is
result = myCursor.delete

myDatabase.myReferences.setBlank
myDatabase.myReferences.id.value = 1
myDatabase.myReferences.type.value = kJournal
do
myDatabase.myReferences.uniqueID.value =
generateUniqueID(countRefNum)
loop until myDatabase.errNumber = 0 and
myDatabase.myReferences.uniqueID.value <> 0

myDatabase.myReferences.addRecord -- !!!! here's where it
crashes !!!!!
else
result = myCursor.delete
end if


It works fine on OS 9.

I tried doing this differently, by blanking the cursor and updating
that -- a crash on myCursor.Update.


There seem to be a number of issues with OS X and Valentina...


Jon
 
©2001 jda
<-- Prior Message New Search Next Message -->