I was making an Obex Server as an .exe which listens for an incoming connections initiated by obex clients on other phones.

When i was running the exe and starting the client application in other phone,the client applications shows error -36 (KErrDisConnected).

I was pondering whether the exe is getting completed much before it is supposed to listen for the incoming connection from the client.How can i make the .exe wait to accept the connections?

Moreover,the server is not calling any of the CallBack functions of MObexServerNotify.

The problem doesn't appear when i was using the same code of .exe in .app.

Please Help me in this regards,