Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call_getInfo System.AccessViolationException #3

Open
BadDeveloper2022 opened this issue Aug 8, 2018 · 4 comments
Open

Call_getInfo System.AccessViolationException #3

BadDeveloper2022 opened this issue Aug 8, 2018 · 4 comments

Comments

@BadDeveloper2022
Copy link

未处理System.AccessViolationException
HResult=-2147467261
Message=尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
Source=pjsua2
StackTrace:
在 pj.Call.getInfo(Call* , CallInfo* )
在 CSharp_Call_getInfo(Void* jarg1)
在 PJSIP.pjsua2PINVOKE.Call_getInfo(HandleRef jarg1)
在 PJSIP.Call.getInfo() 位置 D:\freeSwitch\SIP\PJSip-CSharp-master\pjsua2_net\Classes\Call.cs:行号 55
在 pjsipDotNetSDK.Call.getInfo() 位置 D:\freeSwitch\SIP\PJSIPDotNetSDK-master\pjsipDotNetSDK\Call.cs:行号 756
在 pjsipDotNetSDK.Call.get_State() 位置 D:\freeSwitch\SIP\PJSIPDotNetSDK-master\pjsipDotNetSDK\Call.cs:行号 67
在 pjsipDotNetSDK.Call.getAudioMedia() 位置 D:\freeSwitch\SIP\PJSIPDotNetSDK-master\pjsipDotNetSDK\Call.cs:行号 698
在 TestGui.MainWindow.<Window_Loaded>b__2_0(Object a, ElapsedEventArgs b) 位置 D:\freeSwitch\SIP\PJSIPDotNetSDK-master\TestGui\MainWindow.xaml.cs:行号 77
在 System.Timers.Timer.MyTimerCallback(Object state)
在 System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
在 System.Threading.TimerQueueTimer.CallCallback()
在 System.Threading.TimerQueueTimer.Fire()
在 System.Threading.TimerQueue.FireNextTimers()
在 System.Threading.TimerQueue.AppDomainTimerCallback()
InnerException:

@StrikeForceZero
Copy link
Owner

Do you have more context on when/where this error occurs? I've encountered it plenty of times before and they depend on what is going on at the time.

@BadDeveloper2022
Copy link
Author

BadDeveloper2022 commented Aug 21, 2018

project .net framework 2.0 can not work.
i use VS2008 VS2010 VS2015 build . but choice 2.0 build DLL file run the win XP can not work.
Many of our devices are XP based.

@StrikeForceZero
Copy link
Owner

I haven't tested this on windows XP.
But I noticed my github copy didn't contain the latest changes, so I just took some time to test and push those up. Maybe you will have better luck with that branch.

https://github.com/StrikeForceZero/PJSIPDotNetSDK/tree/dev/v1.0.x

@phphappy
Copy link

phphappy commented May 3, 2019

my vs is 2017 and OS System is Win10. sip server is freeswitch 1.8.
I have the same problem.
在 pj.Call.getInfo(Call* , CallInfo* )
在 CSharp_Call_getInfo(Void* jarg1)
在 PJSIP.pjsua2PINVOKE.Call_getInfo(HandleRef jarg1)
when I click call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants