I have also experienced this problem on all types of connections - but ONLY when encased within an IF statement. I have submitted this bug nearly 2 months ago. Please fix it (3.5a did not). This works only in version 3.2 or less. Any newer versions are un predictable.
-------------------------------------
Jon Harrell