RE: getHandle failed error code 495
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 22, 2002
- 363 views
jacktarred at yahoo.com wrote: > I have the following line in two programs: > > constant stox = addIcon( extractIcon("mystox.ico")) > > In one program I have no problems, in the other I get > the message: > > error code 495 > getHandle failed! > > I tried throwing in the path for good measure but to > no avail. Anyone have a suggestion? > > Thanks, > Jack > Jack, the addIcon routine adds icons to the image lists maintained within Win32lib. However, these lists are not created until the first create of a ListView, TreeView or ComboBoxEx control. So maybe the program is failing because the addIcon() is being called before the create() of one of these controls. I will fix this the next version such that the image lists are created by addIcon() if not already done so. -------- Derek.