I have a custom indicator that uses an external DLL call.
When I load NT7 and connect to a datafeed then open a chart and run the indicator it is fine.
(works on startup if this is saved as a preference as well).
If I start NT7 and load a chart (using data from the disk cache) (no datafeed) and run the indicator it displays results no problem.
If I then connect a datafeed (Kinectick, AMP, ESignal, etc.) the terminal hard crashes with these results:
[4672] 2012-08-09 18:43:29:921 (Unknown) Cbi.Connection.Connect0 Disconnected assembly=7.0.1000.9 date=8/9/2012
[4672] 2012-08-09 18:43:29:921 (Unknown) Cbi.Connection.Connect1
[4672] 2012-08-09 18:43:30:109 (Kinetick – End Of Day (Free)) Cbi.Connection.Connect9
[4672] 2012-08-09 18:43:30:250 (Kinetick – End Of Day (Free)) Cbi.Connection.ProcessEventArgs.ConnectionStatusEv entArgs Connecting Connecting NoError
[4672] 2012-08-09 18:43:30:265 (Kinetick – End Of Day (Free)) Cbi.Connection.ConnectNow1: DataConnection=True
[4672] 2012-08-09 18:43:30:265 (Kinetick – End Of Day (Free)) Cbi.Connection.ConnectNow2
[4672] 2012-08-09 18:43:30:453 (Kinetick – End Of Day (Free)) Cbi.Connection.ConnectNow8: System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
[4672] at System.Runtime.CompilerServices.RuntimeHelpers.Pre pareDelegate(Delegate d)
[4672] at System.AppDomain.add_DomainUnload(EventHandler value)
[4672] at <CliSecureRT>.Initialize()
[4672] at .cctor()
[4672] --- End of inner exception stack trace ---
[4672] at System.RuntimeTypeHandle.CreateInstance(RuntimeTyp e type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
[4672] at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
[4672] at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
[4672] at System.Activator.CreateInstance(Type type, Boolean nonPublic)
[4672] at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
[4672] at System.Reflection.Assembly.CreateInstance(String typeName)
[4672] at NinjaTrader.Cbi.Connection.ConnectNow()
[4672] 2012-08-09 18:43:30:453 (Kinetick – End Of Day (Free)) Cbi.Connection.ProcessEventArgs.ConnectionStatusEv entArgs Disconnected Disconnected Panic Cbi.Connection.ConnectNow: Failed to call IAdapter.Connect: The type initializer for '<Module>' threw an exception.
[4672] 2012-08-09 18:43:30:453 ERROR: Kinetick – End Of Day (Free): Cbi.Connection.ConnectNow: Failed to call IAdapter.Connect: The type initializer for '<Module>' threw an exception.(Panic)
Comment