Consultor Eletrônico



Kbase P129076: Error 142 occurs when opening a .W containing many OCX controls in AppBuilder
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/02/2008
Status: Unverified

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.x
Windows

SYMPTOM(s):

Opening a .W file in the AppBuilder generates error 142

Unable to update _TRG Field (142)

Attempt to update _TRG record data exceeding 32000

Error continues to appear and .W cannot be accessed

.W contains many (100+) OCX controls

Opening the same file in the Procedure Editor works fine

CAUSE:

The CONTROL_LOAD procedure has exceeded the AppBuilder section limit of 32K due to the number of OCX controls that have been added to the .W

FIX:

Reduce the size of the CONTROL_LOAD procedure to the point where the .W can be accessed in AppBuilder:

1) Open the .W in a text editor (Procedure Editor / Notepad)
2) Locate the CONTROL_LOAD procedure
3) Comment out one or more of the OCXs (2 lines; 1 x control-frame reference, 1 x line beginning UIB_S)

Once the .W can be accessed in AppBuilder, the number of OCXs must be reduced.