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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    85 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    257 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X