Why does one computer skip part of a script?

Moderators: Phil Winkler, Graham Smith, Pete Tabord

Why does one computer skip part of a script?

Postby KjetilUrne » Thu Nov 17, 2016 7:35 pm

The first part of a script goes like this (the message is put there for debugging purposes)

Code: Select all
define "tE" number .
tE := SetGlobal ( 126 , P_ID.value ) .
message GetGlobal ( 126 ) window .

One computer (an old laptop) mostly fails to assign Global 126. Sometimes it works.

What could explain this behavior - does it occasionally fail to load memarr32.dll?

(the script resides on a button, placed within a multiple record layout on a tab control)
Posts: 602
Joined: Mon Oct 08, 2007 8:21 am
Location: Norway
Has thanked: 4 times
Been thanked: 1 time

Re: Why does one computer skip part of a script?

Postby andyclinton59 » Fri Nov 18, 2016 9:06 am

To find out which part that fails I would rewrite the script like this:

define "tE" number .
message P_ID.value window .
tE := SetGlobal ( 126 , concat("Test: ",P_ID.value )) .
message GetGlobal ( 126 ) window .

This way you will see if it is reading the P_ID.value which is the problem or if it is the setting of the global.

If it is setting of the global it is likely that there is some memory problem in calling the memarr32.dll
Posts: 52
Joined: Fri Oct 26, 2012 5:42 pm
Has thanked: 0 time
Been thanked: 3 times

Return to Ffenics 1.x

Who is online

Users browsing this forum: No registered users and 7 guests