Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
F# libraries
Collapse
X
-
F# libraries
NinjaTrader 8 crashes when trying to use any F# library. Are these type of libraries compatible?Tags: None
-
Hello Optiondreamer,
I can look into this further if you could please provide me with your log and trace files showing the error message you are receiving as well as the specific library you are using.
You will find the log file on your PC in the (My) Documents > NinjaTrader 8 > Log folder.
-The log file will be named "log.20150811.txt"
You will find the trace file on your PC in the (My) Documents > NinjaTrader 8 > Trace folder.
-The trace file will be named "trace.20150811.txt"
Then please also include a link to the specific library you are referencing or the library itself.
Please attach these files to an email to platformsupport[AT]ninjatrader[DOT]com and be sure to include "ATTN: Michael M Ticket No: #1367123" in the Subject line of your email.
Thank you in advance.Last edited by NinjaTrader_MichaelM; 08-12-2015, 06:04 AM.Michael M.NinjaTrader Quality Assurance
Comment
-
Crash with another library(C#)
Trying to use another library, now with a C# library, NinjaTrader crashes .... Is there any restriction with certain type of libraries?
Used library: Caliburn.Micro https://github.com/Caliburn-Micro/Caliburn.Micro
Exception after crash....
HTML Code:An unhandled exception of type 'System.Reflection.ReflectionTypeLoadException' occurred in mscorlib.dll Additional information: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Comment
-
Hello Optiondreamer,
Unfortunately there is no way for us to support all C# libraries. There are so many different ways that libraries can negatively interact with the platform, with each other, etc that it is almost impossible to answer this question definitively. I apologize for the inconvenience. I believe in this specific case the errors may be related to the fact that the UI is multithreaded in NT8.
Please let me know if I may be of further assistance or if you have any further questions.Last edited by NinjaTrader_MichaelM; 08-26-2015, 12:56 PM.Michael M.NinjaTrader Quality Assurance
Comment
-
Starting NinjaTrader, while loading libraries....
In Editor, add reference, close all and re-open, then crash...
When delete dll from Custom directory, opens without crash...
Also, copying dll in this folder, whithout add any reference, crashes too
Regards.
Comment
-
Interesting will give it a quick try on my side tomorrow to see if I can offer any more help.
As a rule of thumb any c# library I would expect could be installed with NinjaTrader (This is just .net functionality not specific to NinjaTrader) However if the library uses reflection I have seen where they don't play well with the fact that NinjaTrader 8 has multiple UI threads which may be whats happening here.
Comment
-
I tested this today and didn't see an issue:
* Downloaded the source
* Build the .Caliburn.Micro.NET40 project
* Copied the DLL to My Document > NinjaTrader 8 > bin > custom folder
* Referenced it with NinjaTrader 8 NS editor.
* Compiled
* Restarted.
No problems, suggesting you might have some other issue going on or a bad build or something on your side.
Comment
-
Thank you very much Brett.
Compiled dll worked without any issue.
Also discovered, ,that any dll in Custom folder with references to other dll that is not in this folder causes NT8 crashes.
Comment
-
Originally posted by Optiondreamer View PostThank you very much Brett.
Compiled dll worked without any issue.
Also discovered, ,that any dll in Custom folder with references to other dll that is not in this folder causes NT8 crashes.
Comment
-
Brett,
I have attached a ZIP file of the ACCORD .NET library. I have added BAK to one of the files (which is not needed to compile ACCORD files, but required to execute). You will get the error attached upon starting NT8 with these files in your Custom directory.
The tricky part here is debugging, it took a long time for me to figure out what files were missing, I thought the TYPE was something in NT8 no the external libraries.
You can remove the BAK and NT8 will load fine. If you add most of the ACCORD files you can compile solutions, but the DLLs must like to the AForge.dll and fail upon initialization. Anything you can do to make debugging this easier would be much appreciated. I would include the log files but you will get your own set.
Comment
-
Just to make sure I unzip the attached in My Documents / NinjaTrader 7 / custom / bin directory and delete the AForge.dll.bak file. I add a reference to Accord.dll in NT7 and restart NinjaTrader.
NT7 now doesn't load but it gives me a clear error.
When I do the same in NT8 it does not give me a clear error.
That is the issue or am I off base? Just want to make sure I understand.
Comment
-
That is the issue I was having, took me several hours to track down the cause of NT8 not starting. I don't remember because it was a while ago, but even SAFE Start didn't work... Might be worth trying that as well.
I would be nice to know it is one of the added DLLs that cause failed system startup.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mangel2000, Today, 01:30 AM
|
0 responses
8 views
0 likes
|
Last Post
by mangel2000
Today, 01:30 AM
|
||
Started by Doxxxx, Today, 01:24 AM
|
0 responses
5 views
0 likes
|
Last Post
by Doxxxx
Today, 01:24 AM
|
||
Started by ezekilany, Today, 01:10 AM
|
0 responses
4 views
0 likes
|
Last Post
by ezekilany
Today, 01:10 AM
|
||
Started by usjavaburn, Today, 12:59 AM
|
0 responses
3 views
0 likes
|
Last Post
by usjavaburn
Today, 12:59 AM
|
||
Started by heatherjmarshalls, Today, 12:56 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 12:56 AM |
Comment