DFC 6.0 SP1 session problem visual basic code

Options

Hi,

I am migrate an aplication in vb 6 and i have a problem. When i try to make a getSession using sessionManager and then i create a new object, some error appear, it´s something about "SessionHandle with identifier public final". This is my code:

set gSession = sMgr.getSession("Repository")

set n = gSession.newObject("Cabinet")

Any idea?

Thanks for your help.

Comments

  • DCTM_Guru
    edited February 4, 2009 #2
    Options

    newObject method is expecting a type name.  If you want to create a system cabinet, try this:

    set n = gSession.newObject("dm_cabinet")

  • fran.garcia@imdea.com
    edited February 4, 2009 #3
    Options

    Hi Johnny,

    The previus code was generic, i put "Cabinet" and "Repository" but in fact Repository was the name of my docbase "LABORATORIO" and Cabinet was "dm_cabinet".

    Thanks for your help, i have solved my problem using session.disconect before sMgr.release(session). I don´t undertand but it is true.