Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Order2Go COM Trading API Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 11-04-2009, 09:00 PM
Registered User
 
Join Date: Mar 2009
Posts: 3
llewell is an unknown quantity at this point
multi-threading in posted examples

In the VB examples posted here, there is a statement that imports System.threading. The API says that the core is single-threaded, and the .NET docs say this namespace enables threading. One example I am looking at is the Print Whole Table program.

Why specifically import the multi-threading namespace if the core is single-threaded?
Reply With Quote
  #2 (permalink)  
Old 11-05-2009, 10:21 AM
Member
 
Join Date: Apr 2009
Posts: 53
fexxxer is an unknown quantity at this point
Quote:
Originally Posted by llewell View Post
In the VB examples posted here, there is a statement that imports System.threading. The API says that the core is single-threaded, and the .NET docs say this namespace enables threading. One example I am looking at is the Print Whole Table program.

Why specifically import the multi-threading namespace if the core is single-threaded?
Templates for examples were copy&pasted, so naturally namespace imports were copy&pasted, if there is that name space import its probably 'cause one of other examples uses it. Import of namespace System.Threading does not enable anything by itself, but allows to work with Threads. Example that reads incoming ticks uses Thread.Sleep(), which to my knowledge requires it. None of the examples are multi-threaded.
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.

All times are GMT -5. The time now is 10:49 PM.
Copyright ©2009 Daily FX. All Rights Reserved.