ChartScreeShot not saving on Mac

 

Hi All,

it seems that ChartScreeShot does not save anything while running inside wine-preloader. 

   bool newBar=NewBar.CheckNewBar(_Symbol,_Period);
      if(newBar==true){
            //string name="FirstChart.gif"; 
            //--- Save the chart screenshot in a file in the terminal_directory\MQL5\Files\ 
            //if(ChartScreenShot(0,name,800,600,ALIGN_CENTER))
            //   Print("We've saved the screenshot ",name);
            long chartid;
            chartid=ChartOpen("EURGBP",PERIOD_H4);
            Sleep(100);
            string file="picture.gif";
            Alert("screenshot =",ChartScreenShot(chartid,file,800,600));
      }

The Alert return true, so ChartScreeShot seems not to throw an exception but still the image is nowhere.

Thanks for your collaboration,

Marco

Reason: