Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Attempted to read or write protected memory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Attempted to read or write protected memory

    I know. A topic that has been aired a thousand times, but I assure you this time it is nothing to do with brushes and OnRender

    I am trying to run a function in this library. It uses some unmanaged code internally but is completely compatible with .Net 4.8. Most functions do run, but one, when called, gives this and for the most part, causes NT8 to bounce out to the desktop immediately.

    Exception thrown: 'System.AccessViolationException' in Microsoft.ML.LightGbm.dll
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.​

    Are there any workarounds, or is NT8 encryption/protection not going to let me play?

    Thanks.

    #2
    Hello pjsmith,

    Unfortunately, our staff would not be able to assist with using 3rd party libraries.

    We can provide steps to add a file and add a reference to the file, but we cannot assist with it's use.

    This thread will remain open for any community members that would like to provide experience and direction.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    563 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    329 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X