>Maybe I could get an event from the OS telling me that the usb device >is removed but then again I don't want to bother with usb stuff since >I don't know and don't really care if it is an usb port or a real com >port. Anybody got a solution to this? There must be a way of doing this, as memory sticks notify the application when they are removed, which then closes any associated windows. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist