Genesys CTI User Forum > Genesys-related Development

ActiveX User Info

(1/3) > >>

michalss:
Hello All,

I would like to ask for help please. I have an old code from VB6 times and would like to convert it to VB.NET. Actually i did it and now i have VB.NET project without the errors, however when i run it it always fail on this syntax with ERROR "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I know that ActiveX is out of life but i need to use ActiveX libs coz of money and licences.

[code]
    mobjAgentDesktopInfo = New GsAgentDesktopInfo ' HERE im getting ERROR Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
        mobjConnectionInfo = mobjAgentDesktopInfo

        mobjConnectionInfo.Host = mstrCfgServer
        mobjConnectionInfo.Port = mstrCfgPort
        mobjAgentDesktopInfo.Application.Name = mstrApplicationName
        mobjAgentDesktopInfo.User.Name = lstrUserName
        mobjAgentDesktopInfo.User.Password = myPassword
[/code]


I'm not sure why this is happening coz it is working on VB6 correctly... BTW using GsCfgInf libs for it. Basically what i'm trying to do is read Avaya Extention of logged user. Can anyone help please.

cavagnaro:
I have a code defined like this:

[code]
Dim Desk As New GsCfgInf.GsAgentDesktopInfo
        Dim DeskApp As GsCfgInf.GsApplicationInfo
        Dim DeskAgent As GsCfgInf.GsAgentInfo

DeskConn.Host = strConfigServerHost
        DeskConn.Port = strConfigServerPort
        Desk.Application.Name = strAPPName
        Desk.User.Name = strLogin
        Desk.User.Password = strPassword

        Desk.Login()

        If Desk.IsLoggedIn Then

            Desk.Retrieve()

            strAgentName = Desk.User.Person.FirstName + " " + Desk.User.Person.LastName
[/code]

michalss:
Thank you but still getting same error. Can you please PM your Libs to comapre ?

cavagnaro:
Ermm...no mate sorry...this code doesn't belong to me...and for libraries you can ask on Genesys yet even for 7.6

michalss:
[quote author=cavagnaro link=topic=7890.msg34454#msg34454 date=1373388204]
Ermm...no mate sorry...this code doesn't belong to me...and for libraries you can ask on Genesys yet even for 7.6
[/quote]

What you mean 7.6 was not activex right, my impression was that last one is 7.2?

Navigation

[0] Message Index

[#] Next page

Go to full version