![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Sep 2007
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
|
Suppose I have the following code snippet:
LinkedList<int> a = new LinkedList<int>(); a.AddLast(1); foreach(int i in a){ } A window pops up at compilation because of the foreach statement. But then even the foreach is removed, NinjaTrader cannot compile the strategy. Only a restart can solve this problem. Here's what I don't understand: 1) foreach works well in .NET on LinkedList, why not in NinjaTrader? 2) why I have to restart NinjaTrader because of a bug or mis-use of keywords in my program? (If Visual Studio .NET does this, I'd short MSFT!) |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling Code | moflaherty | Suggestions And Feedback | 2 | 08-22-2007 07:23 PM |
| Compiler Error when compiling standard Ninja indicators | MarlinTrader | General Programming | 1 | 05-25-2007 01:28 PM |
| Unhandled Exception, Strategy & Market Replay Connection | californiaruby | Automated Trading | 5 | 02-20-2007 01:24 AM |
| Compiling NinjaScript Files - How does it work? | NinjaTrader_Ray | General Programming | 0 | 01-24-2007 03:00 AM |
| Unhandled Exception? | copodon | Miscellaneous Support | 1 | 03-08-2006 04:11 AM |