Symbian
Symbian OS Library

FAQ-0783 Why does my client-server program crash on WINS?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Client-Server
Created: 04/11/2002 Modified: 04/12/2002
Number: FAQ-0783
Platform: ER5, Symbian OS v6.0, Symbian OS v6.1

Question:
My client-server program runs OK on real hardware but crashes on WINS with an access violation at server shutdown. What might be going wrong?

Answer:
Check that after starting your server code on WINS, you make a call to UserSvr::ServerStarted().

// notify the kernel that a server has started.
#if defined (__WINS__)
UserSvr::ServerStarted();
#endif

If you do not do this the DLL implementing your server may be unloaded prematurely, leading to an access violation.