NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-06-2007, 03:29 AM   #1
shliang
Junior Member
 
Join Date: Sep 2007
Posts: 21
Thanks: 0
Thanked 0 times in 0 posts
Thumbs down Exception when compiling a strategy

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!)
shliang is offline  
Reply With Quote
 

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 05:22 PM.