Error
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=WinFormsApp3
StackTrace:
at WinFormsApp3.Form1.button2_Click(Object sender, EventArgs e) in C:\Users\actex\source\repos\WinFormsApp3\Form1.cs:line 248
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at WinFormsApp3.Program.Main() in C:\Users\actex\source\repos\WinFormsApp3\Program.cs:line 14
14 Replies
yes, that is an error
find what's null
once u know what's null you can work out a solution
Do you have a microphone installed? @xirus
yes but i havent intewgrated mic streams only a wav file
Try troubleshooting with
voiceClient.Microphone?.CopyFrom(...);
first.Why guess, you have the ability to inspect the objects and find what's null
i did idk i set the path right
there should be no problem
so what's null?
llok
First look at the debugger - Visual Studio (Windows)
Get started debugging your applications by using the Visual Studio debugger and see what your code is doing while it runs.
Think this would be useful for you
i figured out
when i connect
i get disconnected
like the voice call call media state
since i did if '... state = Ready
then i can transmit audio
so the problem is the media state connection
any possible fixes?
dw i alr put the await before the task run