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 use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"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
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"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 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
"Excellent datafeed !!!" - Comment from Arely
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. 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 »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: Thu April 25, 2024 5:48 AM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003