Whats The Point Of PDF Creator?
Hi all,
This may be contentious but what the heck.
I posted a request in the Help forum to try to find out a definitive, robust solution to the problem of PDFCreator hanging when cClose is executed ie one which does not rely on putting "wait" statements all over your code and hoping. I have tried everything I could think of but to no avail. There seem to be many instances of other people reporting the same issue from several versions ago but the problem still doesnt appear to be solved in the latest version (0.9.5).
If the product cant be used without hanging and there is no clear solution, whats the point of continuing distributing new versions without first fixing that?
If this cant be solved does anyone know of an alternative free solution which will work with VB macros?
I think I could solve this problem for me now!
Your simple close-part with three lines shows the way for me. My close-method has much more lines. I do not know where I got that from, but I think it was bulletproof with version up to 0.9.3.
So I took your 3-liner and that works. Then I stepped with the debugger again through my method, and I could see that the third of the following lines caused the 100%-CPU load:
_oPdfCreator:cDefaultPrinter := _cDefaultPrinter
_oPdfCreator:cClearCache()
_oPdfCreator:cCloseRunningSession()