When creating a radialgradient brush in SharpDX I receive this error message and the indicator stops rendering
Error al llamar ' OnRender' método en barra 27612: Intento de leer o escribir en la memoria protegida. A menudo, esto indica que hay otra memoria dañada.
It translates to "Attempt to read or write protected memory. This usually means there is some other damaged memory."
This is what appears to be an access violation and likely happening in unmanaged code.
Makes me think there is a bug in NinjaTrader or SharpDX
This is what I am doing (rgb is radialgradient brush)
for( ; ; ) { ... radial gradient brush created try { SharpDX.Direct2D1.Brush lgbdx = rgb.ToDxBrush(RenderTarget); ... FillEllipse here lgbdx.Dispose(); } catch (System.AccessViolationException sve) { // got internal bug exception <--- sometimes this doesn't catch it } }
As a side note I was getting ToDxBrush freezing sometimes with lineargradient brush but only if executed many times. If done only a few times it works fine. Seems something is fishy there.
Latest NinjaTrader version (8.0.23.1 - 64 bits) but with previous was getting that too.
Regards
Waldo
Comment