Results 1 to 2 of 2

Thread: cDbImageContainer Clearing Bug [V2.6]

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    1,830

    Default cDbImageContainer Clearing Bug [V2.6]

    Hi DAW,

    If you're using FILESTREAM to read/write images data directly unto a table (BINARY) column, then the image does NOT clear when the DD does a Clear/Clear_All.

    We traced the issue to an oversight in the parent class cImageContainer, more specifically in the "Set psImage" procedure.

    Within the "Procedure Set psImage String sImage" there is a block of code as per:

    Code:
            Get pbLoadFromResource to bLoadFromResource
            If (not (bLoadFromResource)) Begin
                Get ppsImage to sPreviousImage
                Get FindImage sImage to sImage
                If (sPreviousImage = sImage) Begin
                    Procedure_Return
                End
            End
    This is to be updated as follows:

    Code:
            Get pbLoadFromResource to bLoadFromResource
            If (not (bLoadFromResource)) Begin
                Get ppsImage to sPreviousImage
                Get FindImage sImage to sImage
                If (sPreviousImage <> '') Begin //@ RRS
                  If (sPreviousImage = sImage) Begin
                    Procedure_Return
                  End
                End
            End
    The reason being that psImage is usually blank when using FILESTREAM to read/write image data.

    Hopefully this fix will applied to the next revision.

    Thanks.
    Regards,
    Raveen Sundram

    Software Development Manager
    Excellent Software Ltd
    Auckland, New Zealand
    www.helixretail.co.nz


  2. #2
    Join Date
    Feb 2009
    Location
    Castlegar, BC Canada
    Posts
    4,836

    Default Re: cDbImageContainer Clearing Bug [V2.6]

    I'm also seeing something wierd here, but not able to put my finger on it. Sometimes a load a new file and the change will not show until I exit the program. Other times it works fine. I have implemented your change Raveen and so far the behavior has not returned, but will keep an eye on it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •