Hi Paul,
Just a follow-up.
Not only did your code help - it unlocked the floodgates. I have completed my app as a tray application and it's running marvelously.
On that note - I am also experiencing the same problem if FS is closed when the app is running (in debug mode) - could it be a 'throw' exception is needed?
I've set my app up with the idea of being loaded before FS - in this manner, it polls for FSUIPC every five seconds with the .open method until FS is detected and once it is, it begins polling offsets with the .process method every 1/2 second. If the connection drops, I've written it to halt using the .process and resume 5-second monitoring with .open ...
Sounds great -but what actually happens is that I must run the app while FS is open or it doesn't detect - also, if I close FS while the app is open, i also get an exception error...I shall try and post the trouble spot later today if needed. Based on what I've read above and experienced myself - I believe the issue resides in the exception handling for the .process method as it is the first to get hit by a dropped connection and because my program does not report an error if fs is not loaded when it boots - only when FS closes which means that the .process method is catching (or throwing rather) the exception as the .open is not being used at that stage. Any thoughts?
Your experience and assistance is greatly appreciated.
Regards,
Devon.