Page 1 of 1

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

Posted: Tue Jan 21, 2025 7:02 pm
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

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

Posted: Thu Jan 23, 2025 10:27 pm
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?

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

Posted: Fri Jan 24, 2025 12:38 am
by Vasyl - PDF-XChange
Perhaps we found the reason for the trouble and fixed it. The fix will be in the upcoming build.

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

Posted: Fri Jan 24, 2025 7:11 am
by zarkogajic
Hi Vasyl,

Thanks.

p s.
Still need sample?


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

Posted: Fri Jan 24, 2025 10:08 am
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

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

Posted: Fri Jan 24, 2025 10:11 am
by zarkogajic
Hi Stefan,

Agreed, thanks.

-žarko

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

Posted: Fri Jan 24, 2025 12:02 pm
by Stefan - PDF-XChange
:)