View Full Version : NT Error, needs to shutdown (beta 11)
astrolobe
03-18-2010, 09:40 PM
I get a dialog popping up saying that NT needs to shut down. It appears that it is not while I am performing a specific task, but rather as I move my mouse. It happens intermittently (2 to 3 times a day).
As I side effect after the message, when I shutdown and reopen, my workspace does not have all the latest chartobjects in it anymore, and I have to spend a lot of time redrawing all my channels. Sometimes the workspace is okay, and sometimes not. I have tried saving my workspace before shutting down (but after the error message), but this does not help, the workspace is usually already damaged.
please see attached trace file.
NinjaTrader_Dierk
03-19-2010, 12:05 AM
Let's try to isolate. Please uninstall any 3rd part software like:
>> 2010-03-18 17:42:26:101 Loading 3rd party C:\Users\Grant Crawford\Documents\NinjaTrader 7\bin\Custom\gcRiver.dll...
If the problem persists, then it would be great to have a reproducible scenario so we could look into. Thanks
astrolobe
03-25-2010, 05:48 PM
Hi Dierk,
I have removed all third party software, and beta 12 continues to shutdown intermittently. I am unable to reproduce it on demand, but it is happening about four times a day.
It appears to happen when I have more than one workspace open, and usually when working in the second workspace that I opened.
I have attached the trace and log, but here is a small part of the error from the trace:
2010-03-25 18:25:00:096 Chart.ChartControl.OnPaint: Parameter is not valid.
2010-03-25 18:25:00:096 in OnUnhandledThreadException
2010-03-25 18:25:00:096 ********* exception trapped *********
2010-03-25 18:25:00:096 Object is currently in use elsewhere.
2010-03-25 18:25:00:096 at System.Drawing.Graphics.GetHdc()
NinjaTrader_Dierk
03-25-2010, 09:54 PM
This does not look like you had uninstalled any 3rd part software:
2010-03-25 17:19:34:649 Loading 3rd party C:\Users\Grant Crawford\Documents\NinjaTrader 7\bin\Custom\gcUtility.dll...
astrolobe
03-25-2010, 11:27 PM
Sorry about that. I did remove it from the references inside the indicator, but I did not realize that I had to physically delete the dll out of bin/custom.
I have done that now, so we will see if it helps.
NinjaTrader_Dierk
03-25-2010, 11:29 PM
3rd party components should be uninstalled by File->Utilities and not by manually removing them from the file system. This is to avoid inconsistencies.
astrolobe
03-25-2010, 11:56 PM
I created a simple dll to hold a static class and some static properties, with a few common enums. Should I have implemented this using the NT export facility?
I just added it to bin/common and referenced it in the indicators.
NinjaTrader_Dierk
03-26-2010, 12:01 AM
Sorry I'm confused:
- below you stated you had removed gcUtility.dll as it's a 3rd party component
- now you're saying this is your own dll
Could you please clarify?
Thanks
astrolobe
03-26-2010, 12:09 AM
My misunderstanding...when you referred to 3rd party components, I understood it to mean any non NT assemblies, as you referred to my gcUtility.dll. Anyway, it no longer appears in the trace, as I physically removed it from the custom folder.
So far from the discussion, I am assuming I should have exported it via the NT utility, and then installed it using the zip file?? Is that correct, or am I way off the mark?
NinjaTrader_Dierk
03-26-2010, 12:12 AM
The supported way to build assemblies is File->Utilities->Export.
Since gcUtility is your own assembly, and I suppose it's not a protected assembly, you could leave that in place.
astrolobe
03-26-2010, 12:17 AM
Okay, thank you.
BTW, this thread http://www.ninjatrader-support2.com/vb/showthread.php?t=24631
looks like the same kind of problem I am experiencing.
NinjaTrader_Dierk
03-26-2010, 12:19 AM
The link you provided points to a post and missing the thread context
astrolobe
03-26-2010, 12:20 AM
Try it again, I have edited my post.
NinjaTrader_Dierk
03-26-2010, 12:23 AM
Thanks. The error message as per post #1 of this thread is a generic one which always would come up as something "unexpected" happened.
astrolobe
03-26-2010, 12:29 AM
Yes, but in post #3, cristian mentioned that all he was doing is clicking the mouse, and trying to drag the chart to see more. I know this is very vague, but my error also appears when I move the mouse (obviously not everytime I move the mouse).
I will let you know if I can narrow it down.
NinjaTrader_Dierk
03-26-2010, 12:30 AM
Sounds good. Thanks