Malcolm!
>
>...I'm glad to hear you have a workaround. Perhaps your workaround provides a clue?
>
Good to hear that this works as bad as it does here.
No, the workaround does not provide a clue
GetAssocIconPairObjects() first gets the handles to the icons and internally calls
IconHandle2Object() witch returns the Icon-Object.
What I do is, add the handles to local properties when I first get them.
Even in this method I get the error when I query oIcon.Handle
I can write
? lhIconLarge
? loIconLarge.Handle
and set a breakpoint there.
In the Debugger, both show the same value (one with decimals, one without, but they are ".00"). And in the watch window
loIconLarge.Handle properly evaluates. But when I run over it I get the error.
It seems as if from the running program the TypeLibrary is not accessable. Maybe timing problems.
I'll keep You informed