[V4RB] Win32 open database problem

Keith DeLong delong at redcort.com
Mon Feb 17 21:14:55 CST 2003


Ruslan,
After a couple of days chasing a V4RB issue in Windows -- I could really use
some insight.

Consider the following action event in a pushbutton...

Sub Action
  dim v as myDataBase
  dim res as boolean
  
  //I open the data file via another app.
 
  v = new myDataBase
  res = v.open(f)
  
  if res then
    msgBox "Open worked. Close the database before continuing."
  else
    msgBox "Open failed. Close the database before continuing."
  end

  // I close the database via the other app...
  v.close 
  v = nil
  v = new myDatabase
  res = v.open(f)
  
 // res = true 100% of the time in Mac OS 9
 // res = false 100% of the time in Win32
  
End Sub 

If I push the button again res = true for both Mac and Windows. In Windows,
something is being cleaned up between runs that is not being cleaned up by
nil'ing v. in the middle of the event.

I've tried using a fresh f (folderitem) between opens -- no change...

What's going on here? Is this a Win32 bug?

Thanks,

Keith DeLong




More information about the Valentina mailing list