Author Topic: ActiveX User Info  (Read 5824 times)

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
ActiveX User Info
« on: July 09, 2013, 05:16:42 AM »
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.
« Last Edit: July 09, 2013, 05:29:00 AM by michalss »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: ActiveX User Info
« Reply #1 on: July 09, 2013, 05:31:55 AM »
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]

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: ActiveX User Info
« Reply #2 on: July 09, 2013, 05:35:53 AM »
Thank you but still getting same error. Can you please PM your Libs to comapre ?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: ActiveX User Info
« Reply #3 on: July 09, 2013, 04:43:24 PM »
Ermm...no mate sorry...this code doesn't belong to me...and for libraries you can ask on Genesys yet even for 7.6

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: ActiveX User Info
« Reply #4 on: July 10, 2013, 04:32:47 AM »
[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?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: ActiveX User Info
« Reply #5 on: July 10, 2013, 12:41:22 PM »
Yes, ActiveX 7.2
What I ment was that if you have Gen7.6 you still can ask for those libraries I think...long time I don't request them but...worth to try.

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: ActiveX User Info
« Reply #6 on: July 15, 2013, 10:16:26 AM »
There is also migration path from old sdk to new sdk which would give You native .net libraries for configuration and tserver access.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: ActiveX User Info
« Reply #7 on: July 15, 2013, 10:18:56 AM »
Really? Never read about those...have the name? Or how to ask them?

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: ActiveX User Info
« Reply #8 on: July 15, 2013, 10:20:04 AM »
hmm i would like to know this as well.

BTQ i was able to fix my problem with this memory error :)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: ActiveX User Info
« Reply #9 on: July 15, 2013, 11:29:31 AM »
And what was the issue?

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: ActiveX User Info
« Reply #10 on: July 15, 2013, 12:41:34 PM »
Well that was pain to figure it out :D

You have to switch OFF [u][b]Data Execution Prevention (DEP)[/b][/u] for your application!

Offline michalss

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: ActiveX User Info
« Reply #11 on: July 17, 2013, 04:37:13 AM »
Does anyone got documentation for ActiveX 7.2 please ?? I would really really need it??