Closing USB port

Hi,

I opened a USB comm port with the Open function that returns without error. The USB port is not physically present but exist in the list of available ports. When I close the port with Close() the function hangs and does not return.



Version 1.5.0



Some Suggestion?

Is the virtual COM port driver up-to-date for this USB port?

Do you perform some other action immediately after the Close() that could cause the real problem?

Yes, the driver is the latest available from vendor

This is the only code I execute in OnClose event of the Form



          TIM_test->Enabled= false;

          if( COM_scanner->Active())

                COM_scanner->Close();

          for( int i=0; i < this->ComponentCount; i++ )

               if( this->Components->ClassNameIs( "TUniQuery") )

                    ((TUniQuery*)this->Components)->Close();

          DM_t1cont->Q_batterie->Close();

Ok,

the problem is on a network port not USB, sorry for my mistake.

After some test it seems the port is opened from 2 applications (on 2 different pc) without error but the Close function fail probably for driver problem



Mirco