Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »IQFeed Developer Support »How to tell if Client is already registered after crash?
Author Topic: How to tell if Client is already registered after crash? (1 messages, Page 1 of 1)

sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004


Posted: Oct 31, 2004 06:34 PM          Msg. 1 of 1
1. IQConnect is not running.

2. Register the client app via IQ32.DLL

3. Kill my client before removing/unregistering

4. Restart my client and RegisterClientApp() returns false. MessageBox pops up and says client application already registered.

How can I tell if the False value returned in 4. is due to an error or because the client application is already registered?

I don't know whether I should call RemoveClientApp() and call RegisterClientApp() again because the RegisterClientApp() returning false doesn't mean anything specific.

If I try this and call RemoveClientApp() then the callback notifies me that the connection is OK. Very confusing because at this point IQConnect isn't even running. If I rely on the status callback then it tells me that I'm connected.

Another weird thing is that if I now call RegisterClientApp() I get three more callbacks of status OK - still confusing.

Can DTN provide a better return code that describes the reason instead of just true or false?

Maybe it would be useful to provide an additional function that returns true or false if a client application is already registered. This way I can see if the client app is already registered.

But I don't know how this would help in the case where IQConnect process crashes. Since the point of RegisterClientApp() is to restart IQConnect if it is not started, currently RegisterClientApp() doesn't actually restart it if IQConnect crashed and the application is already registered.
Edited by sasha on Oct 31, 2004 at 06:44 PM
 

 

Time: Sun May 15, 2022 11:57 PM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003