Product : Engine, Version : 4.0.4.1023, ArticleID : 41023265

Bug : If the byte array gets corrupted using the savetomemory and the createfrom memory is used, no trapable non recoverable error is generated.

Article41023265
TypeBug
ProductEngine
Version4.0.4.1023
Date Added10/8/2003
FixedYes [10/15/2003]
Submitted byWalter Tallman
Keywords

Subject

If the byte array gets corrupted using the savetomemory and the createfrom memory is used, no trapable non recoverable error is generated.

Summary

If the byte array gets corrupted using the savetomemory and the createfrom memory is used, no trapable non recoverable error is generated.

Private Sub Command4_Click()
Dim Document As Variant
Dim Bytes As Long
 VD.ActiveDocument.New
 VD.CommandAction.CmdLine Array(Array(10, 10), Array(20, 20), Array(30, 10))
  
  On Error GoTo errEnd
   Bytes = VD.ActiveDocument.SaveToMemory(Document)
    
    For i = 1000 To 1005
        Document(i) = Document(i) + 1 'xalaw ta bytes.
    Next i
    
 
    VD.ActiveDocument.CreateFromMemory Document, Bytes
    VD.CommandAction.RegenAll
    VD.CommandAction.Zoom "E", "USER", "USER"
    Exit Sub
errEnd:
    MsgBox "error"
End Sub

Solution

It is fixed in 4.0.5.1024