This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

ObjectDelete in deinit() function (expert advisor) hangs.


Back to topics list
avatar
23
Matias 2005.07.16 08:44 
Trying to delete an object inside the deinit() function of expert advisor hangs and force metatrader to shutdown the expert by timeout.

MT4 v177 (updated)

//+------------------------------------------------------------------+
//|                                                  JustTesting.mq4 |
//+------------------------------------------------------------------+
int init()
{
  return(0);
}

int deinit()
{
  ObjectDelete("mocardo");
  return(0);
}

int start()
{
  ObjectCreate("mocardo", OBJ_VLINE, 0, Time[10], 0 );
  return(0);
}

avatar
4464
Slawa 2005.07.18 11:04 
how many objects?
avatar
23
Matias 2005.07.18 11:58 
Slawa,
I guess is not a matter of how many objects are created.
The problem arises with just one object.

avatar
4464
Slawa 2005.07.18 12:48 
thanx. fixed version coming soon
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets