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)




"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"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.
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - 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
"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"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
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"Everything is working great with the API. I love it." - Comment from Calvin
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 »RegisterClientApp does not return in JAVA
Author Topic: RegisterClientApp does not return in JAVA (6 messages, Page 1 of 1)

ilanazbel
-Interested User-
Posts: 24
Joined: Jun 19, 2006


Posted: Nov 3, 2008 09:02 AM          Msg. 1 of 6
Writing a JAVA app to use the iqfeed.
When I call RegisterClientApp (as per the examples) I see the login window come up and it seems to successfully connect, but the function call to RegisterClientApp never returns. That is, the program just hangs waiting for that function to complete.

Any ideas?

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 3, 2008 09:07 AM          Msg. 2 of 6
Is this a new app or is it one that previously worked and just stopped working recently?
What version of IQFeed are you using?
What version(s) of Java do you have installed?
Do you get the same results with the java example apps included with the feed?

ilanazbel
-Interested User-
Posts: 24
Joined: Jun 19, 2006


Posted: Nov 3, 2008 02:50 PM          Msg. 3 of 6
new app.
latest version: 4.4
java 1.6

This is the funny bit: when I compile and run the streamer.java I get the error. But when I run the streamer.class file I get from you it all works fine!!!!

ilanazbel
-Interested User-
Posts: 24
Joined: Jun 19, 2006


Posted: Nov 3, 2008 03:06 PM          Msg. 4 of 6
Another useful observation:
As I said before, if I run the streamer.bat file from the installation directory it works fine.

Now, if I copy the streamer.bat file and the "Java Examples" directory to my source directory, then running the streamer.bat file results in the same error (the client terminal connects and authenticates, but never returns).

Ilan

ilanazbel
-Interested User-
Posts: 24
Joined: Jun 19, 2006


Posted: Nov 3, 2008 03:19 PM          Msg. 5 of 6
I *think* I have found the issue: after installation I copied all the DLLs into my source directory, when I remove all the DLL files everything works just fine!

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 3, 2008 04:26 PM          Msg. 6 of 6
That certainly makes sense.

During startup, IQ32.dll and IQConnect.exe do come communications. As you probably already know, Windows will first look in the applications local directory before looking elsewhere for dependencies.

Since IQ32.dll is being called both by your app and by IQConnect, having 2 copies of IQ32.dll on your system can cause 2 separate copies of the dll loaded into memory and prevent the communications from occuring (and causing the lockup).

Of course, as you have already discovered, making sure there is only one copy of IQ32.dll on your system (and that it is in the IQFeed installation directory) is the resolution for this problem. It also ensures that your app should run without conflict of other apps on your system that use IQFeed (other 3rd party trading apps).
 

 

Time: Tue May 28, 2024 10:38 PM CFBB v1.2.0 6 ms.
© AderSoftware 2002-2003