cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

api connect to mega question

veldew
Super Contributor

Hello,

 

I have a small tool that connects to mega with this code :

 

If CBool(CurEnv.IsSessionOpen) Then
    oRoot = CurEnv.GetRoot("mykey")
Else ' if there is not a session open, the following will launch a Mega connection window
    oRoot = CurEnv.GetRoot
End If

 

This code seems to work fine, except after a "compare and align". Then i need to restart mega each time to let it work again.

 

Any idea on this?

 

kind regards,

Wim VdV

1 Reply

imrankhatyan
Trusted Contributor

Hello,

Yes you need to close all instance of mega and initiate the session again.

 

regards,

Imran Usman Khatyan