-
Uri Netanel
- PowerBuilder
- Tuesday, 28 October 2025 08:50 AM UTC
Hi Everyone!
I have a PB app (PB2022 R3) which exports reports from dw objects to excel using an OLE based module. When large reports (over 150 pages) are exported the application crashes. A partial Excel file is created in the process before PB crashes.
The event log shows the following details:
Faulting application name: PB220.exe, version: 22.2.0.3397, time stamp: 0x671f94ed
Faulting module name: VCRUNTIME140.dll, version: 14.38.33135.0, time stamp: 0x13877304
This issue is similar to https://community.appeon.com/index.php/qna/q-a/pb-runtime-crash but in my case the OLE is used to output data.
I don't know if this helps, but I noticed the partial excel file contains 4440 rows. Smaller report exported to up to 4440 rows do not crash the application.
I attempted to fix the issue by inserting garbage collection for oleObjects, inserttng yield() commands into central loops in my script and wrapping script parts in try - catch blocks but nothing helped.
Any ideas?
Thanks
Uri
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.