BIZARRE -- Bug in Build 196

 
Slawa,
If I comment Print("test") line than loop "for" will not work.
Why?
It was working a OK on 195;
I have Build 196; 7, September 2006

Substituting Print("test") call with a call to dummy() function will work too.

void dummy()
{
}

//+------------------------------------------------------------------+
//|                                                        test1.mq4 |
//|                      Copyright © 2006, MetaQuotes Software Corp. |
//|                                        https://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, MetaQuotes Software Corp."
#property link      "https://www.metaquotes.net"

#property indicator_separate_window

   int j, all;
   int cnt=0;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
//----
   all=1;
   j=cnt;  

Print("test");

      for(cnt=j; cnt<j+all; cnt++)
         {
         Print("j=",j,"  cnt=",cnt,"  all=",all);
         }
      
//----
   return(0);
  }
//+------------------------------------------------------------------+




 
Try to download build 196 dated Sep 11

We've fixed some bugs.
 
Try to download build 196 dated Sep 11

We've fixed some bugs.


Slawa,
Sep. 11 did not helped.
 
Thank You very much. Fixed. Wait for build 197
 
Thank You very much. Fixed. Wait for build 197

Thanks Slawa.
197 works a OK.