BUG: MT4 Build 1220 Account Login Number Changed Before OnDeinit() Event

 

The AccountInfoInteger( ACCOUNT_LOGIN ) function will get the new login account number before the EA be called by OnDeinit() event when the user switch to another account with the same broker. (Not sure if it will be so when switching to other brokers' accounts)

It supposed to be the logout account number before the end of OnDeinit() event, right? But it now not works like that, seems EA will get the new account number is login even in the event OnDeinit() of the logout account, and before the OnInit() event of the new login account, so EA could be having some trouble when it is still processing the data of the logout account.

Reason: