Thanks for your reply Ken. But I dont that that your answer would explain why if I connect using remote desktop from either a vista or windows 7 (so that is client = vista/windows7 ---> windows XP) then the application in question works just fine. Its only if if use rdesktop on fedora (so that is client = fedora 13 x64 ---> windows XP) that the application on windows XP crashes. The application on the XP host will still be running in session > 0 no matter what the remote desktop client is. In fact, I can start the application up using remote desktop from windows 7 and then disconnect the session, then connect with rdesktop and the application subsequently crashes.

Incidentally the app works fine with VNC.

cheers

chris