It sounds like you may have interest in the Connection Manager[^]. I wouldn't suggest hardcoding your application to only work over one of those two connection types. If the user connected using some other method (ex: over bluetooth or over some other connection type that you don't know about) then your application may not work for them.
Joel Ivory Johnson
Meet my dev team: RDA Architecture Evangelist Team Blog
My site: J2i.net
Twitter: J2iNet
Seems like one of the variables being used in the event handler does not have any value assigned to it. The reason it's not occurring in debug mode is that it gets the required time to get the value and therefore no exception is thrown. You can also check for the variables and their values at the time when the exception occurs which can give you a hint for the cause of the exception. ~Dave
Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com
Yup OK that's what i got confused :)
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "