ImageList/TreeView - wierd error

T'Pot

New Member
I am getting this weird bug & I was wondering if anybody has seem it before.
I using the Microsoft v5 treeview with an imageList (also MS v5)

most of the time everything works fine, but once in a while a error happens in the control_load routine.

I am using Progress 9.1D

The control was added using AppBuilder.

The error seems to happen on the following chunk of code:
ASSIGN
chcfImageList = cfImageList:COM-HANDLE
UIB_S = chcfImageList:LoadControls( OCXFile, "cfImageList":U)
chcfTreeView = cfTreeView:COM-HANDLE
UIB_S = chcfTreeView:LoadControls( OCXFile, "cfTreeView":U)

The error says:
"Error occured while accessing component property/method LoadControls.
Unexpected Failure
Error Code: 0x8000ffff control_load filename"

again usually there is no problem, but sometimes this error occurs, with the same data that worked before

Any help would be greatly appreciated
 

Stefan De Leyn

New Member
Try looking through your entire propath if you have a wrx-file with a duplicate name somewhere. If so then this is causing the problem. Progress just uses the first one it encounters. Sometimes it comes across the right one first, sometimes the wrong one which then in turn seems to cause random errors.

Just an idea by the way. I'm far from certain this will solve the problem.
 
Top