basic init not working!

 

I have a basic EA, but the init and denit is not working at all.


Anyone know why? The server is not connected, but there is nowhere in mql4 document saying the init requires the connection to sever.


//+------------------------------------------------------------------+

//| aaa.mq4 |
//| Copyright © 2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"

//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{

while(!IsConnected()) Alert("ss");
Print(22);

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
Alert("removed");
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
Comment(22222);
Alert(22);

//----
return(0);
}
//+------------------------------------------------------------------+
 
Print ("22");
Alert("22");
Comment("22222");

Reason: