- Joined
- Nov 2, 2011
- Messages
- 23
- Reaction score
- 1
Can't get the CallControl API to connect to 3CX v20 on Windows Server 2016. It's failing after calling the Reset function. the event viewer gives this info:
Application: TCXWindowsTestApp.exe
CoreCLR Version: 8.0.1124.51707
.NET Version: 8.0.11
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER)
at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER)
at TCX.Configuration.PhoneSystem..ctor()
at TCX.Configuration.PhoneSystem.Reset(System.String, System.String, Int32, System.String, System.String, TCX.Configuration.NotificationEventHandler, TCX.Configuration.NotificationEventHandler, TCX.Configuration.NotificationEventHandler)
at TCXWindowsTestApp.Form1.connectTo3CX()
at TCXWindowsTestApp.Form1.Button1_Click(System.Object, System.EventArgs)
As you can see it's just a test app that uses the latest API and .net 8.0 (also does the same for .net 7.0). We click a button to connect and call the Reset function which crashes whilst registering the listener.
This same code works fine in Windows 11 and Linux. It's not a bad image x64 problem as I've tried targetting both x64 and AnyCPU.
any ideas greatly appreciated.
Application: TCXWindowsTestApp.exe
CoreCLR Version: 8.0.1124.51707
.NET Version: 8.0.11
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER)
at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER)
at TCX.Configuration.PhoneSystem..ctor()
at TCX.Configuration.PhoneSystem.Reset(System.String, System.String, Int32, System.String, System.String, TCX.Configuration.NotificationEventHandler, TCX.Configuration.NotificationEventHandler, TCX.Configuration.NotificationEventHandler)
at TCXWindowsTestApp.Form1.connectTo3CX()
at TCXWindowsTestApp.Form1.Button1_Click(System.Object, System.EventArgs)
As you can see it's just a test app that uses the latest API and .net 8.0 (also does the same for .net 7.0). We click a button to connect and call the Reset function which crashes whilst registering the listener.
This same code works fine in Windows 11 and Linux. It's not a bad image x64 problem as I've tried targetting both x64 and AnyCPU.
any ideas greatly appreciated.