Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

pl_PascalScript critical Error 6 hours 12 minutes ago #19570

  • Roman
  • Roman's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
  • Posts: 136
  • Thank you received: 2
If a script uses division between two variant variables, and the divisor variable hasn't been initialized, the application crashes after a "divide by 0" exception. Try-except doesn't help (either in the script or in the code calling the script).
To fix the error, add an explicit assignment statement to the uPSRuntime.pas file, starting at line 6072 (after begin):
if VarIsClear(tvar) then tvar := 0;

Please Log in or Create an account to join the conversation.

pl_PascalScript critical Error 4 hours 42 minutes ago #19571

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1397
  • Thank you received: 220
Thanks Sir
We add your fix to LAB CT ver 9.0.
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1