View Issue Details

IDProjectCategoryView StatusLast Update
0002960VALENTINA SERVERAPIpublic2008-01-21 06:29
ReporterFabianAssigned ToIvan Smahin 
Status resolvedResolutionfixed 
Product Version3.5.2 
Target VersionFixed in Version3.5.2 
Summary0002960: A changed picture was reread from the cache and not from the DB
DescriptionSituation (VCOM, VServer, VB6):

On two PCs record A was read and the same picture was shown on both (as expected). Now on PC 1 the picture was changed (and the update flushed).

On PC 2 the same record was reread -> the old picture was shown.

If I first read an other record on PC 2 and then reread record A -> the correct picture was shown.

It looks like the changement of the picture field does not invalidate the cached data.
Additional InformationCode snippet:

Function DBReadPicture(Byval RowID As String) As StdPicture
  Dim myPict As VPicture
  Dim myTable As VTable
  Dim RecID As Long

  Set myTable = myDB.Table("Patienten")
  RecID=myTable.Field("PAT_ID").FindSingle(RowID) 'RowID is a GUID
  If RecID<>0 Then
    myTable.RecID = RecID
    Set myPict = myTable.Field("Foto")
    Set DBReadPicture = myPict.ReadPicture
  End If
  Set myPict = Nothing
  Set myTable = Nothing
End Function


Image1.Picture = DBReadPicture(RowID)
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2008-01-20 03:31 Fabian New Issue
2008-01-21 06:29 Ivan Smahin Status new => resolved
2008-01-21 06:29 Ivan Smahin Fixed in Version => 3.5.2
2008-01-21 06:29 Ivan Smahin Resolution open => fixed
2008-01-21 06:29 Ivan Smahin Assigned To => Ivan Smahin