newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007
|
Posted: Aug 27, 2008 08:37 PM
Msg. 1 of 6
For example I connected using IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) and for some reason I do not get quote from DTN. So I want to shot down IQConnect and restart it again from VB code.
Sometimes ago I tried using IQFeedY1.RemoveClientApp() and then call IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) again but it seems does not work. Thanks Oleg
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Aug 28, 2008 08:52 AM
Msg. 2 of 6
IQConnect will shut down as soon as all Level 1 connections to it have been terminated (after at least one has connected). Your Feed Stats screen or the S,STATS message will identify how many are currently connected.
|
newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007
|
Posted: Aug 28, 2008 10:34 AM
Msg. 3 of 6
Hi Steve, 1. how I can force to drop all connection to IQConnect from code 2. how I can restart it again (call IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) ?) Oleg
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Aug 28, 2008 10:38 AM
Msg. 4 of 6
Since you are using the ActiveX control (IQFeedY), and it manages the socket connection for you, you will have to destroy your instance of the control and create a new one. Depending upon your setup, this might require you to destroy the form that you have the control on.
Once you have a new instance of the control, you can call RegisterClientApp to reconnect it.
|
newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007
|
Posted: Aug 28, 2008 12:37 PM
Msg. 5 of 6
It is just my question. How I can destroy IQFeeddY without destroying the form?
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Aug 29, 2008 08:25 AM
Msg. 6 of 6
Oleg, that is going to be very difficult to answer without seeing some code from your app. If you want to email developer support with this, I might be able to offer some advice.
|