Opening a Read-only transaction in HOPEX without an active HOPEX running

Opening a Read-only transaction in HOPEX without an active HOPEX running

Hi,

I want to download a certain set of data from all my MegaDatabase (repositories) at once. So I wrote a VB.net application that did the job for me. In MEGA 2009 this worked perfectly, but now within HOPEX V2R1 I don't seem to create a MegaRoot-object.

My (simplified) code - the value of oEnv is correctly assigned to the one environment we have.

Re: Opening a Read-only transaction in HOPEX without an active HOPEX running

Imran, thanks for your response, but it doesn't help me. In your code you mention 1 extra line of code: Set oEnv = oMegaApp.Environments(1) Since oEnv is already correctly assigned that is not the problem. I can also get a list of all the repositories/databases that are available in the environment. But when I want to open a MEGAROOT (iRepos.Open) of each database, the value of oMegaRoot is left unassigned (IsNothing).