login about faq

I cannot get void PercentDone(int pctDone, bool abort) and void ProgressInfo(const char name, const char *value) event callbacks to work with CkCrypt2Progress in C++. In e.g. CkZipProgress these callbacks work just fine.

I have tried to lower the put_HeartbeatMs to e.g. 2ms, but still no difference. However the void AbortCheck(bool *abort) callback works fine. I have also tried with different file sizes (just-in-case).

I am using the VC++ 11 / 32bit / v110_xp libraries version

My derived code looks like this:

#include "CkCrypt2Progress.h"
#include "ProgressDualDlg.h"

class Crypt2Progress : public CkCrypt2Progress  
    CProgressDualDlg *localDlg;
    Crypt2Progress(CProgressDualDlg *dlg) : localDlg(dlg)   { }
    virtual ~Crypt2Progress() { }

    void AbortCheck(bool *abort) 
        if (localDlg->IsStopped()) <-- breakpoint hit
            *abort = true;
    void PercentDone(int pctDone, bool *abort)
        if (localDlg->IsStopped()) <-- breakpoint never hit
            *abort = true;

    void ProgressInfo(const char *name, const char *value)
        CString csName(name); <-- breakpoint never hit
        CString csValue(value);

asked Oct 24 '13 at 06:03

roan98dk's gravatar image


edited Oct 25 '13 at 04:31

These new builds should fix the problem with PercentDone not getting called:

32-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.4.1-x86-vc11_xp.zip

64-bit: http://www.chilkatsoft.com/preRelease/chilkat-9.4.1-x86_64-vc11_xp.zip

The PercentDone will also count as an AbortCheck event, therefore the AbortCheck events will only be called when enough time elapses between 1% increments.

There are no actual ProgressInfo events in this case, so it won't fire.


answered Oct 25 '13 at 11:44

chilkat's gravatar image

chilkat ♦♦

Are there any other changes to this pre-release (since that I need to be aware of?

(Oct 28 '13 at 11:03) roan98dk

P.S. The new release solves the problem...

(Oct 28 '13 at 11:43) roan98dk
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 24 '13 at 06:03

Seen: 2,179 times

Last updated: Oct 28 '13 at 11:43

powered by OSQA