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)




"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"It’s so nice to be working with real professionals!" - Comment from Len
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"Everything is working great with the API. I love it." - Comment from Calvin
"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
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
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 »Archive (2017 and earlier) »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: Fri April 26, 2024 9:09 PM CFBB v1.2.0 7 ms.
© AderSoftware 2002-2003