Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Multiple tray icons in Windows 10

Saurav, I think what you're seeing is https://bugs.eclipse.org/bugs/show_bug.cgi?id=488739 which was also reported very recently.
We haven't started investigating the problem yet, you could also post your comments on the same bug along with a code sample if you have one handy.

Thanks,
Arun

Inactive hide details for Saurav Sarkar ---04-03-2016 11:59:56 AM---Thanks Christian for your inputs. I will raise a bug on SWTSaurav Sarkar ---04-03-2016 11:59:56 AM---Thanks Christian for your inputs. I will raise a bug on SWT.

From: Saurav Sarkar <saurav.sarkar1@xxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 04-03-16 11:59 AM
Subject: Re: [platform-swt-dev] Multiple tray icons in Windows 10
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





Thanks Christian for your inputs.

I will raise a bug on SWT.

Regards,
Saurav


On Thu, Mar 3, 2016 at 7:05 PM, Christian Campo <christian.campo@xxxxxxxxx> wrote:
    I have no detailed knowledge of the cause of this, but I highly recommend opening a bugzilla issues against SWT for this. Bugzilla in general is not only for topics like „I know there is a bug in SWT“ but also for topic „something is strange here when using SWT“.

    There you will get to SWT committers who can look at your problem.

    christian
        Am 03.03.2016 um 11:53 schrieb Saurav Sarkar <saurav.sarkar1@xxxxxxxxx>:

        Hi All,

        I know that this is not a forum for general issue discussion.

        But i posted my question over multiple forums from stack overflow to msdn to Eclipse forums. I have either got no reply or irrelevant ones.

        So would like to ask my question over this list and seek your guidance on the issue

        We have been using SWT as our frontend UI in standalone mode for our desktop based client available both in Windows and Mac flavors.

        We use SWT's tray item to contribute a tray icon along with a menu. Below is how we are using it

        1. When the application starts we create an instance of the tray item and set an initial image.
        2. During the life cycle of application according to our status of application we keep calling setImage on the same instance of the tray item.
        3. One point to note is we load the image from our file system every time we don't have any image cache.

        This was working fine before Windows 10. But Windows 10 produces multiple icons with our scenarios. But only icon is active one or has a menu. As time progresses the whole notification area fills up with icons and our application becomes unusable.

        I checked that SWT internally uses Windows Shell SDK's Shell_NotifyIcon() APIs.
        Below is the precise code from OS class

        public static final boolean Shell_NotifyIcon (int dwMessage, NOTIFYICONDATA lpData) {
        if (IsUnicode) return Shell_NotifyIconW (dwMessage, (NOTIFYICONDATAW)lpData);
        return Shell_NotifyIconA (dwMessage, (NOTIFYICONDATAA)lpData);
        }

        So, i concluded that calls with OS.NIM_ADD is only called once during my application initialization and OS.NIM_MODIFY subsequently.

        Does anyone have any hints on this issue or how can i progress with this ?

        Is there any internal tracing/logging for SWT running in standalone mode that i can enable ? Can SWT write to windows event logs ? Are there any Windows Shell SDK logs which i can trace to find out on who is contributing the icons ?

        Questions which i have already posted across the forums

        https://www.eclipse.org/forums/index.php/t/1074333/

        https://social.msdn.microsoft.com/Forums/en-US/07be522c-2ee0-46d3-adff-58de137142d4/shellnotifyiconw-producing-multiple-icons-in-windows-10?forum=windowsgeneraldevelopmentissues


        Thanks in advance.
        Best Regards,
        Saurav

        _______________________________________________
        platform-swt-dev mailing list

        platform-swt-dev@xxxxxxxxxxx
        To change your delivery options, retrieve your password, or unsubscribe from this list, visit

        https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


    _______________________________________________
    platform-swt-dev mailing list

    platform-swt-dev@xxxxxxxxxxx
    To change your delivery options, retrieve your password, or unsubscribe from this list, visit

    https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top