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 |
|
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);
}
|
|
Slawa
2005.07.18 11:04
how many objects?
|
|
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. |
|
Slawa
2005.07.18 12:48
thanx. fixed version coming soon
|
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
