Errors, bugs, questions - page 1285

 
vlad_123:

Has anyone encountered this problem lately?

The testing agents suddenly start to make terrible logging of things like this:

And they're piling up gigabytes of it...

https://www.mql5.com/ru/forum/41260/page4

Apologies, it will be fixed in the near future

 
alexl:

https://www.mql5.com/ru/forum/41260/page4

We apologise, this will be rectified shortly

Thank you for the information, we look forward to it.
 
vlad_123:
Thank you for the information, we will wait.
Updates for agents are already available - they will update automatically
 
Renat:
Updates for agents are already available - they will update automatically
Can you tell methe build number? I have build 1085 (13 Feb 2015) now, would like to make sure agents are updated.
 
vlad_123:
Can you give me the build number? I have build 1085 (13 Feb 2015) now, would like to make sure agents are updated.
Yes, 1085.
 
alexvd:

Is the code attached to you not working? Is there anything in the logs?

Have you tried the debugger to control what is happening step by step?

Either way, you need the specifics to reproduce it.

The attached example below illustrates the problem - using resources BITMAP_LABEL does not display (at least in my 777 build).

In the 765 build everything works the same.

Files:
 
zhserg:

The attached example below illustrates the problem - BITMAP_LABEL is not displayed using resources (at least in my 777 build).

In 765 build everything works the same.

Here is your EA on the chart.


Little tip.

Ran through source code. I haven't found any synchronous calls like ObjectGet..., ChartRedraw etc.

So, until you pull chart or receive tick you won't see this object.

 
alexvd:

Ran through the source code. Didn't find any synchronous calls like ObjectGet..., ChartRedraw etc...

That is, until you pull the chart or until you get a tick you will not see this object.

I know it very well, I did it by haste... But still it doesn't work (by the way, we updated to 778 and the same situation).

Could you tell me what's wrong, at least approximately. Maybe because of WinXP?

 
zhserg:

I know this very well, I did it in a hurry... But nevertheless it doesn't work (now updated to 778 and same situation).

Can you tell me what's wrong, at least approximately. Could it be because of WinXP?

I removed creation (recreation) of object on every tick. Now the object is created only once - either at start or when changing timeframe.

#resource "\\Images\\btn-1.bmp"

input bool  loadFromRes=true;
bool        creation=false;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   ObjectDelete("BTN");
   creation=false;
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   if(creation)
      return;
   if(loadFromRes)
     {
      BitmapLabelCreate(0,"BTN",0,100,100,"::Images\\btn-1.bmp","::Images\\btn-1.bmp",135,25,0,0,false,CORNER_LEFT_UPPER,ANCHOR_LEFT_UPPER,clrWhite,STYLE_SOLID,1,false,false,true,0);
      creation=true;
     }
   else
     {
      BitmapLabelCreate(0,"BTN",0,100,100,"\\Images\\btn-1.bmp","\\Images\\btn-1.bmp",135,25,0,0,false,CORNER_LEFT_UPPER,ANCHOR_LEFT_UPPER,clrWhite,STYLE_SOLID,1,false,false,true,0);
      creation=true;
     }
   ChartRedraw();
  }

MetaTrader 4 build 778.

 
barabashkakvn:

I have removed the object creation (recreation) on every tick. Now the object is created once - either at startup or at timeframe change.

MetaTrader 4 build 778.

I'm sorry to take your time. But the result is the same, unfortunately (.