1. Andy Preman
  2. PowerBuilder
  3. Monday, 5 April 2021 19:56 PM UTC

Hello,

I am trying to run a program using task scheduler.  I have done this before without any issues up to now.  The program runs correctly if I launch it normally or from the command prompt.  If I run it from the task scheduler it seems to stop in the middle of the execution.  I get the following error in the event viewer.

Log Name:      Application
Source:        Application Error
Date:          4/5/2021 3:42:01 PM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      EC2AMAZ-GB0H3EH
Description:
Faulting application name: person.exe, version: 3.0.2.6, time stamp: 0x6064e1f6
Faulting module name: pbdwe190.dll, version: 19.1.0.2353, time stamp: 0x5f145530
Exception code: 0xc000041d
Fault offset: 0x00281e09
Faulting process id: 0x3ef0
Faulting application start time: 0x01d72a53af6cc92e
Faulting application path: C:\Program Files (x86)\XXX\Person\person.exe
Faulting module path: C:\Program Files (x86)\XXX\Person\pbdwe190.dll
Report Id: 71c111f7-2344-482b-9698-3104a400772f
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-04-05T19:42:01.182985500Z" />
    <EventRecordID>40940</EventRecordID>
    <Channel>Application</Channel>
    <Computer>EC2AMAZ-GB0H3EH</Computer>
    <Security />
  </System>
  <EventData>
    <Data>person.exe</Data>
    <Data>3.0.2.6</Data>
    <Data>6064e1f6</Data>
    <Data>pbdwe190.dll</Data>
    <Data>19.1.0.2353</Data>
    <Data>5f145530</Data>
    <Data>c000041d</Data>
    <Data>00281e09</Data>
    <Data>3ef0</Data>
    <Data>01d72a53af6cc92e</Data>
    <Data>C:\Program Files (x86)\XXX\Person\person.exe</Data>
    <Data>C:\Program Files (x86)\XXX\Person\pbdwe190.dll</Data>
    <Data>71c111f7-2344-482b-9698-3104a400772f</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

Any Ideas?

Thanks, Andy.

Andy Preman Accepted Answer Pending Moderation
  1. Tuesday, 6 April 2021 12:27 PM UTC
  2. PowerBuilder
  3. # 1

Chris,

Not sure why it only happens when running through the task scheduler.  If I run it any other way, it works correctly.

Thanks,

Andy

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 6 April 2021 18:35 PM UTC
If the App is reading / writing external files ... then, it might be a "permissions" issue (just my guess). Did you include a "manifest" in the App EXE's compile?
  1. Helpful
  1. Andy Preman
  2. Tuesday, 6 April 2021 18:44 PM UTC
Chris,



I stumbled on the solution. It was the same advise you gave to correct random crashes by creating a pb.ini file, see:

https://community.appeon.com/index.php/qna/q-a/fix-for-random-crash-works-for-all-pb-versions-including-2019-r3



It now works fine.

Thanks,

Andy
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 6 April 2021 18:59 PM UTC
That's "awesome" Andy ... great news!

Wow .. that Chris guy knows his stuff ... LOL!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 5 April 2021 21:20 PM UTC
  2. PowerBuilder
  3. # 2

Hi Andy;

  FWIW: It looks like the DW "Expression Evaluator" is the module getting tagged with the fault (for some odd reason). HTH

Regards ... Chris

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.