🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4478

Why does Shell_NotifyIcon fail sometimes?

#4478
From: David Scheffel
Date: Mon, 30 Jan 2006 12:18
15 lines
1426 bytes
Hello,

I'm currently using the TTrayIcon (samples palette) which internally 
calls Shell_NotifyIcon function. Sometimes the call of Shell_NotifyIcon 
fails which causes an EOutOfRessources Exception to be thrown.

Could anybody give me an explanation why this call might fail? I've also 
noticed this problem in some other VCL-applications as well.

Apparently this problem occurs usually during system-start when Windows 
is under heavy load while starting all programs registered under 
start-up or run (Registry).

Thanks...
David
Technical Details
Message-ID: <43de0367$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,60b26d54197d60f1,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 30 Jan 2006 13:18:55 +0100
From: David Scheffel <noreply@spammy.com>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Why does Shell_NotifyIcon fail sometimes?
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.227.35.73
Message-ID: <43de0367$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138623335 212.227.35.73 (30 Jan 2006 04:15:35 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail