Welcome to the Xceed Community | Help
Community Search  

Zip & BackgroundProcessing

Sort Posts: Previous Next
  •  10-23-2007, 7:15 AM Post no. 5730

    Zip & BackgroundProcessing

    Hello,

    I use VB6 and XceedZip Compression Library 5.0.115.0

    I have a strange bug with the Zip method.

    BackgroundProcessing is not defined but it is False by default.
    After Zip call, other form's event are launched. It's like a DoEvents call after Zip method...

    Do you have a idea ?

    It's my code

    Set Zip = New XceedZip
    With Zip
    .License "....-....-....-...."
    .CompressionLevel = xclMedium
    .CompressionMethod = xcmDeflated
    .PreservePaths = False
    .ZipFilename = "ZipFile.zip"
    .AddFilesToProcess "FileToZip.txt"
    .ZipOpenedFiles = True

    Ret = .Zip
    'Here form's events are launched
    If Ret <> xerSuccess And Ret <> xerWarnings Then
    MessageErreur = Ret & " " & .GetErrorDescription(xvtError, Ret)
    Exit Function
    End If
    End With
  •  10-25-2007, 2:27 PM Post no. 5731 in reply to 5730

    Re: Zip & BackgroundProcessing

    This is a normal behavior.

    During some operations (like Zip(), Unzip(), etc) the component empties the message queue with calls to PeekMessage() and DispatchMessage(). That is why the UI continues to update and does not block.

    This is done to support the <a href="http://doc.xceedsoft.com/products/XceedZip/Overview_of_the_DLL_API_interface.html">DLL API</a> <a href="http://doc.xceedsoft.com/products/XceedZip/DLL_API_Event_handling_by_Windows_messages.html">Event handling by Windows messages</a>.
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
  •  10-26-2007, 3:35 AM Post no. 5732 in reply to 5731

    Re: Zip & BackgroundProcessing

    Hello CharlesB,

    Ok, but in this case the BackgroundProcessing = false is useless!

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.