Resolved Long runnig task
- How-to
- Aleš Vojáček
- PowerBuilder
- Monday, 19 December 2022 01:20 PM UTC
Hi all,
we have long running task (there is 30k rows in datawindow) and in for loop we are executing some checks using SQL queries.
We are using MSSQL as database PB2022 runtime 1892.
After cca 25 mins. Application ends with this error:
Problem Event Name: APPCRASH
Application Name: winzis12.exe
Application Version: 1.1.0.1
Application Timestamp: 63764527
Fault Module Name: PBVM.dll
Fault Module Version: 22.0.0.1892
Fault Module Timestamp: 637645a5
Exception Code: c0000005
Exception Offset: 0035b232
OS Version: 6.3.9600.2.0.0.400.8
Locale ID: 1029
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: 8e2a
Additional Information 4: 8e2a2fd1219ab9916c34f5a7a4ce3a01
I added yield() every 100 rows.
It does not helped :-(
Do you have any suggestion? May be it can help to rewrite this to stored procedure, but it will take some time, any other suggestion how and why this error will occure?
Thank you.
Ales
EDIT:
I'm sorry for this question, specially to those people which tried to help me out.
The app which had problems, was created log before I joined company. And there is "feature" in this app, which close response windows after 25 minutes. This batch (that cause problems) was started by response window and You gues what happend? The response window tries to close self after 25 mins :-(
I'm sorry again and I will open beer for this problem solved.
Thank you All.
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.