v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 1456
Joined: Thu Sep 05, 2019 12:35 pm

v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon

Post by zarkogajic »

Hi Support,

Eh ... this one was hard to locate.

It seems 393 version has some newly introduced bug inside IPXC_Document.WriteToFile when using IProgressMon parameter.

Here's what I know so far:

I have my implementation of IProgressMon using with WriteToFile(...)

My app crashes, various weird exceptions are reported including : "out of memory", "AV in module 'ucrtbase.dll'".

The call to IPXC_Document.WriteToFile happens in a separate thread.

Even if my implementation of IProgressMon does nothing - still crash.

I've also noted that the same custom implementation of IProgressMon, used in, for example, IPXC_Document.PlaceHeadersAndFooters() works as expected (also not in main thread).

If null is used for IProgressMon in WriteToFile - no crash (but then no usable progress indication ofc)

Yes, same code works with v9.X with no issues.


-žarko
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2444
Joined: Thu Jun 30, 2005 4:11 pm

Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon

Post by Vasyl - PDF-XChange »

I checked the code around the WriteToFile and cannot see any potential reason for such problem. Can you provide a simple example to reproduce it on our side?
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2444
Joined: Thu Jun 30, 2005 4:11 pm

Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon

Post by Vasyl - PDF-XChange »

Perhaps we found the reason for the trouble and fixed it. The fix will be in the upcoming build.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
zarkogajic
User
Posts: 1456
Joined: Thu Sep 05, 2019 12:35 pm

Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon

Post by zarkogajic »

Hi Vasyl,

Thanks.

p s.
Still need sample?

User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19795
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon

Post by Stefan - PDF-XChange »

Hello zarkogajic,

I believe that a sample is not needed for now. Please check next week when the new build is out whether the fix Vasyl mentined above helps, and if a sample is still needed after that we will request it!

Kind regards,
Stefan
zarkogajic
User
Posts: 1456
Joined: Thu Sep 05, 2019 12:35 pm

Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon  SOLVED

Post by zarkogajic »

Hi Stefan,

Agreed, thanks.

-žarko
Post Reply