I hate my life. More crashes.

Zav - Alex Zavatone zavpublic at mac.com
Sun May 4 15:59:29 CDT 2003


Thank you Gunnar.  It appeared that I needed to pass the name of the 
table in the creation of the cursor, not the table ref.

But do not fear, I can still cause Valentina to take Director down 
faster than Mike Tyson against Michael Jackson.

This must be a special talent I was born with.  It just took till my 
late 30's to find it.  So many years wasted.  So sad.

Running the following code after initing Valentina yet again caused 
Director to vaporize. (DMX, Os 10.2.5)

on ReadFromUserDatabase
   put "creating user database"
   myDBPath = the moviepath & "username.vdb"
   myDBTable = "Users"
   myDB = new( xtra "VDatabase")-- NEW INSTANCE OF THE XTRA

   OpenDataBase(myDB, myDBPath,1) -- CREATE DATABASE FROM SCRATCH

   myBaseTableRef = GetBaseObjectName(myDB, 1) -- Get the TABLE  **** 
The baseRef OBJ is the table
   
   -- ...then your addField stuff.
   userField = "Username"
   passwordField = "Password"
   hintField = "Hint"

   -- create a cursor object
   myDBref = myDB.GetRef()
   --  
   myCrsRef = new(xtra "VCursor", myDBref, "SELECT * FROM" && 
myDBTable)--myBaseTableRef)
   put ValentinaError()
   myCrsRef.SetBlank()
   -- add Zav as a user with ferrari as password and "Italian sports 
car" as hint.
   myUser = "Zav"
   myPassword = "ferrari"
   myHint = "Italian Sports Car"
   myCrsRef.AddRecord([myUser, myPassword, myHint])

   --  flush the db
   myDB.Flush()
   -- Clear the cursor reference
   myCrsRef = 0

   -- Close the database
   CloseDataBase(myDB)
end

**********

Date/Time:  2003-05-04 15:45:56 -0700
OS Version: 10.2.5 (Build 6L29)
Host:       Zavs-Ti.local.

Command:    Director MX
PID:        1324

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

Thread 0 Crashed:
  #0   0x070722b0 in 
DB_OpenDatabase__FP23VDataBase_IMoaMmXScriptP13MoaMmCallInfo
  #1   0x0707d7a4 in Call__23VDataBase_IMoaMmXScriptFP13MoaMmCallInfo
  #2   0x006c9da4 in 0x6c9da4
  #3   0x007d23cc in 0x7d23cc
  #4   0x007d2444 in 0x7d2444
  #5   0x007d2524 in 0x7d2524
  #6   0x007c09a8 in 0x7c09a8
  #7   0x007c36f0 in 0x7c36f0
  #8   0x007c12c4 in 0x7c12c4
  #9   0x007d55ec in 0x7d55ec
  #10  0x006d182c in 0x6d182c
  #11  0x006d62ec in 0x6d62ec
  #12  0x00745634 in 0x745634
  #13  0x00691d18 in 0x691d18
  #14  0x003ebe60 in 0x3ebe60
  #15  0x004bd110 in 0x4bd110
  #16  0x004ba3f8 in 0x4ba3f8
  #17  0x0034a3b4 in 0x34a3b4
  #18  0x002ded9c in 0x2ded9c
  #19  0x002df8dc in 0x2df8dc
  #20  0x002e5058 in 0x2e5058
  #21  0x002e5fb8 in 0x2e5fb8
  #22  0x00335db8 in 0x335db8

Thread 1:
  #0   0x90073c48 in mach_msg_trap
  #1   0x90005f90 in mach_msg
  #2   0x901489f0 in __CFRunLoopRun
  #3   0x90180f58 in CFRunLoopRunSpecific
  #4   0x94d9c1c0 in _ZN10HALRunLoop9OwnThreadEPv
  #5   0x94d911b0 in _ZN9CAPThread5EntryEPS_
  #6   0x90020d48 in _pthread_body

PPC Thread State:
   srr0: 0x070722b0 srr1: 0x0200f030                vrsave: 0x00000000
    xer: 0x20000000   lr: 0x070722a0  ctr: 0x9005e2d8   mq: 0x00000000
     r0: 0x070722a0   r1: 0xbfffed80   r2: 0x071d2000   r3: 0x00000000
     r4: 0xbfffedf0   r5: 0xbfffef38   r6: 0x00000001   r7: 0x6e616d65
     r8: 0x00046010   r9: 0xa0220a00  r10: 0x034d8010  r11: 0xa00044b0
    r12: 0x9005e2d8  r13: 0x00000000  r14: 0x00000000  r15: 0x00000000
    r16: 0x00000000  r17: 0x00000000  r18: 0x00000000  r19: 0x00000000
    r20: 0xbffffe94  r21: 0x033c9bbc  r22: 0x033c9ac4  r23: 0x03b06d63
    r24: 0x008ff90c  r25: 0x03054884  r26: 0xbfffef38  r27: 0xbffff138
    r28: 0x03ad8ab4  r29: 0x071e3430  r30: 0x071f6b74  r31: 0xbfffed80

-- 
- Zav
Lost in the translation.


More information about the Valentina mailing list