Is there a way that I can actually see WHY and WHERE it is causing NT to crash or if it is something in NT? I have all of my computations surrounded in try/catch and it still produced nothing.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Enable verbose debugging or way to see WHY NT8 crashes
Collapse
X
-
Enable verbose debugging or way to see WHY NT8 crashes
I am developing a indicator but when I try to load a chart, it will just randomly crash. The only logging that is produced is in Windows Event Manager and it states that a portion of the .NET library crashed. Real helpful.
Is there a way that I can actually see WHY and WHERE it is causing NT to crash or if it is something in NT? I have all of my computations surrounded in try/catch and it still produced nothing.Tags: None
-
Kate W.NinjaTrader Customer Service
- Likes 1
-
WHICKED What is the fault being logged? The Event Viewer will have this in the General section of the event.
For example:
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1387, time stamp: 0x0b9a844a
Exception code: 0xc0000602
Thanks.
Comment
-
Code:Faulting application name: NinjaTrader.exe, version: 8.0.25.0, time stamp: 0x616d7974 Faulting module name: clr.dll, version: 4.8.4420.0, time stamp: 0x6109cbc8 Exception code: 0xc00000fd Fault offset: 0x0000000000003208 Faulting process id: 0x337c Faulting application start time: 0x01d7e798687cbd6c Faulting application path: C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.exe Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cl r.dll Report Id: 2c7d9002-03a9-43c3-adc9-b23d09cc3fca Faulting package full name: Faulting package-relative application ID:
Comment
-
Hello WHICKED,
Thank you for your reply.
Sometimes an infinite loop can cause a crash, and there may not be a good way to trap the infinite loop unless you identify where the loop/recursion is entered.
You could use prints or StreamWriter to walk through parts of your code and leave a message until the crash happens, that can help identify where the crash originates from. You could also comment\uncomment code sections to narrow down where the crash may stem from.
Please let us know if we may be of further assistance to you.
Kate W.NinjaTrader Customer Service
Comment
-
WHICKED Having been through this loop () myself a few times, NinjaTrader_Kate is right to point you in that direction.
I suggest you look at all relevant loop constructs for boundary and exit conditions to see if any may not be doing what you intended.
You may find this thread useful: https://ninjatrader.com/support/foru...nd-while-loops
Thanks.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, Today, 06:40 PM
|
0 responses
10 views
0 likes
|
Last Post
by algospoke
Today, 06:40 PM
|
||
Started by maybeimnotrader, Today, 05:46 PM
|
0 responses
8 views
0 likes
|
Last Post Today, 05:46 PM | ||
Started by quantismo, Today, 05:13 PM
|
0 responses
7 views
0 likes
|
Last Post
by quantismo
Today, 05:13 PM
|
||
Started by AttiM, 02-14-2024, 05:20 PM
|
8 responses
168 views
0 likes
|
Last Post
by jeronymite
Today, 05:00 PM
|
||
Started by cre8able, Today, 04:22 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 04:22 PM
|
Comment