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)




"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"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
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"Excellent datafeed !!!" - Comment from Arely
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"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
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 May 2, 2024 12:53 AM CFBB v1.2.0 25 ms.
© AderSoftware 2002-2003