![]() |
CXTPTrayIcon failed due to time out |
Post Reply ![]() |
Author | |
yoavm ![]() Groupie ![]() Joined: 15 July 2006 Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() Posted: 21 November 2016 at 10:40am |
Hi,
Dialog similar to the TrayIconDlg sample. The Create method to create the Tray Icon failed. GetLastError get rc=1460 (ERROR_TIMEOUT).
Please advice |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello,
I can't reproduce your issue with v17.3, with TrayIconDlg sample. Please write more information. Version of Windows, ToolkitPro, VisualStudio. Code snippet or ideally a sample application so that we could debug it. Regards, Oleksandr Lebed |
|
![]() |
|
yoavm ![]() Groupie ![]() Joined: 15 July 2006 Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Windows 2008 TollkitPro 17.2 and also at 16.3.1. Visual Studio 6.0 Used to work for some years. Suddenly several different sites
reported about this error. At our lab it doesn’t happen. As you can see the code for creating the Tray Icon is
identical to yours TrayIconDlg sample. Since this problem not happening always at all places how
can we debug it? What potentially can causes time out at this call? Tell me what else I can send. Thanks, Yoavm |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
I think that error from calling ::Shell_NotifyIcon() in
> CXTPTrayIcon::ShellNotify(unsigned long dwMessage) Line 129 C++ CXTPTrayIcon::AddIcon() Line 333 C++ CXTPTrayIcon::Create(const wchar_t * lpszCaption, CWnd * pParentWnd, unsigned int nIconID, unsigned int uMenuID, unsigned int uDefMenuItemID, bool bDefMenuItemByPos) Line 533 C++
|
|
![]() |
|
yoavm ![]() Groupie ![]() Joined: 15 July 2006 Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Sorry for the delay. It took some time to test it by the customer. I changed the method ShellNotify from member XTPTrayIcon.cpp:
Bottom line, creating of the tray icon failed with rc=1008 Is this what you had in mind or there is different way to solve it? Thanks yoavm |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello yoavm,
I think it should solve your problem. So Do your customer no longer gets timeout errors ? |
|
![]() |
|
yoavm ![]() Groupie ![]() Joined: 15 July 2006 Status: Offline Points: 47 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It didn't. The call TrayIcon.Create(... now return code 1008 and the tray icon doesn't appears. yoavm
|
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
If you test fixed ShellNotify() method with TrayIconDlg sample then I can say that there is an error in method CTrayIconDlgDlg::OnInitDialog() - OnBtnShowBalloon() called before creating m_TrayIcon. Should be called even after m_TrayIcon.SetAnimationIcons().
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |