World Server doesn't re-appear when re-opening explorer

Forum Archive - from http://theuniversal.net
Locked
User avatar
VDZ
Posts: 1205
Joined: Wed Apr 07, 2004 11:32 am
Location: Netherlands

World Server doesn't re-appear when re-opening explorer

Post by VDZ »

Software:Unregistered Server
Version Number:49.6 beta1
________________________________________________________________________
Location
That place
________________________________________________________________________
Description:
When you close explorer, and re-open it, the server doesn't re-appear in the taskbar.
Because you can't get to it by opening again ('You can only run one instance of this program at a time'), you'll have to crash the program to close it.
________________________________________________________________________
Steps to Replicate:
(needs Windows NT or later)
1. Start up the World Server.
2. Minimize the World Server.
3. Press CTRL+ALT+DEL, and choose Task Manager.
4. Choose the tab Processes.
5. Click explorer.exe in the list.
6. Click 'End process'.
7. Click Applications (or whatever it is in the english windows).
8. Click New Task (or whatever that is in the english windows...).
9. Type explorer and press enter.
All icons re-appear on the taskbar, except the world server.
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post by Magicfinger »

it could be said that if explorer.exe is crahing then the server icon is probabbly the least of your worries :)

any...

@mit would look at this at this but i find that section of the code a tad scary :)

anyway a bit of research suggests that the following is the answer...

Code: Select all


LRESULT CALLBACK WndProc(HWND hWnd, UINT uMessage, WPARAM wParam, 
                         LPARAM lParam)
{
    static UINT s_uTaskbarRestart;

    switch(uMessage)
    {
        case WM_CREATE:
            s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated"));
            break;
        
        default:
            if(uMessage == s_uTaskbarRestart)
                AddTaskbarIcons();
            break;
    }

    return DefWindowProc(hWnd, uMessage, wParam, lParam);
}

theseer
VIP
VIP
Posts: 782
Joined: Sat Dec 04, 2004 9:50 am

Post by theseer »

When explorer is closed, a lot (most, all except things like sound, internet connection indicator e.t.c) of programs don't return to the taskbar.
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post by Magicfinger »

true, although it is still a bug it just means that those programs also arent programmed to detect the windows message which instigates a taskbar restarted function.
User avatar
VDZ
Posts: 1205
Joined: Wed Apr 07, 2004 11:32 am
Location: Netherlands

Post by VDZ »

McAffee and MSN Messenger do re-appear....anyways, my explorer.exe usually doesn't crash, I just close it on purpose (saves a lot of memory and sometimes also CPU usage...I know, my computer is slow :P).
User avatar
Magicfinger
Staff
Staff
Posts: 1078
Joined: Tue Sep 30, 2003 10:38 am
Location: here,there and everywhere

Post by Magicfinger »

bump
Locked