Debug view printing extraneous lines

WIN 11, AB 6.93.0, DebugView 4.90

I am trying gto do some debugging by printing last 40 bars of array, using a loop.

DebugView prints 3 lines for each line of the loop, out of sequence. This happens only in this one section of code, which is in a chart pane.

I am using system in single thread (#pragma maxthreads 1;)

DebugView output and code below. Line 1 of the loop highlighted in blue.

I would appreciate any help you can provide

        for( m = 1; m <= 40; m++ )
        {
        
            _TRACE( "Chart-xxx - status " + status("action") + "  m " + writeval(m,1.0) + "  Symbol " + symbol  
					+ "  Price HL " + writeval( ref(Price_HL,-m), 1.0 ) + "  Price HL " + writeval( ref(staticVarget(symbol + "Price_HL"),-m), 1.0 ) 
                    + "  TR1 " + writeval( ref(Price_TR1,-m),1.0 )+ "  TR1 " + writeval( ref(staticVarget( symbol + "Price_TR1"),-m),1.0 ) );

        }

Each chart pane is run in its own separate thread. If you have multiple panes/charts you will have multiple threads running in parallel. #pragma only affect Analysis window, not charts.