Consultor Eletrônico



Kbase P41364: AppBuilder: Error 3166 when adding an OCX to a window - upgr
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/05/2006
Status: Unverified

FACT(s) (Environment):

Windows 2000

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.1B

FACT(s) (Environment):

Progress 9.1C

SYMPTOM(s):

AppBuilder: Error 3166 when adding an OCX to a window

More than one _U records found by a unique FIND. (3166)

More than one <table> records found by a unique FIND. (3166)

OCX is deleted, then added again

Error occurs very frequently, but not consistently

CAUSE:

Bug# 20010618-031

CAUSE:

Changes in the memory management for Windows 2000 cause COM handles to be reused far more frequently on an OS level.
The UIB / AppBuilder did not handle this changed behavior very well.

FIX:

Workaround:
Add the second copy of the OCX to the window before deleting the first one.
Then delete the first one and rename the second one to the correct name.