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 thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"You have an excellent product !!!!!!" - Comment from Arely
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"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
"Everything is working great with the API. I love it." - Comment from Calvin
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
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: Mon August 8, 2022 2:14 AM CFBB v1.2.0 32 ms.
© AderSoftware 2002-2003