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
v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon SOLVED
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.
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.
-
- User
- Posts: 1454
- Joined: Thu Sep 05, 2019 12:35 pm
- 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
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
- 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
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 1454
- Joined: Thu Sep 05, 2019 12:35 pm
Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon
Hi Vasyl,
Thanks.
p s.
Still need sample?
-ž
Thanks.
p s.
Still need sample?
-ž
- Stefan - PDF-XChange
- Site Admin
- Posts: 19794
- Joined: Mon Jan 12, 2009 8:07 am
- Contact:
Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon
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
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
-
- User
- Posts: 1454
- Joined: Thu Sep 05, 2019 12:35 pm
Re: v10.5.0.393 - problems in IPXC_Document.WriteToFile if using custom IProgessMon SOLVED
Hi Stefan,
Agreed, thanks.
-žarko
Agreed, thanks.
-žarko
- Stefan - PDF-XChange
- Site Admin
- Posts: 19794
- Joined: Mon Jan 12, 2009 8:07 am
- Contact: