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've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"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
"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
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"It’s so nice to be working with real professionals!" - Comment from Len
"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
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: Mon May 20, 2024 12:46 PM CFBB v1.2.0 7 ms.
© AderSoftware 2002-2003