ICON fails to load sometimes 
Author Message
 ICON fails to load sometimes

I have an NT Service in VC 6.0 sp5. It places an ICON in the system tray.

intermittentlythe ICON fails to load. This function returns NULL :

HANDLE hIcon =  LoadImage(this->m_hInstance, MAKEINTRESOURCE
(iconID),IMAGE_ICON,0,0,LR_DEFAULTSIZE);          

when I call GetLAstError - it says resource 204 not found (where 204 is the
variable iconID).

Any Ideas how to solve this?



Fri, 05 Dec 2003 17:54:08 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ActiveX Control Loads...Sometimes

2. DCOM Proxy stub DLL fails to register - SOMETIMES ...

3. Loading bitmaps @ startup sometimes garbled

4. SetCooperativeLevel fails SOMETIMES...why?

5. CreateProcess() sometimes fails to start QuickWin application

6. Socket Error: WSAGetOverlappedResult fails sometimes

7. debug version works, release version sometimes fails

8. RpcNsBindingLookupBegin SOMETIMES fails

9. LoadFrame sometimes fails on NT, then requires reboot to fix

10. RegQueryValueEx failing sometimes.

11. GetMethod() sometimes fails in recursive call

12. Loading an icon in the taskbar (beside the time) -- like the volume icon

 

 
Powered by phpBB® Forum Software