Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: michalss 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.
-
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]
-
Thank you but still getting same error. Can you please PM your Libs to comapre ?
-
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 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?
-
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.
-
There is also migration path from old sdk to new sdk which would give You native .net libraries for configuration and tserver access.
-
Really? Never read about those...have the name? Or how to ask them?
-
hmm i would like to know this as well.
BTQ i was able to fix my problem with this memory error :)
-
And what was the issue?
-
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!
-
Does anyone got documentation for ActiveX 7.2 please ?? I would really really need it??