tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

C# code works on win 10 but not work on win11 and win server 2022 #2959

Closed isuruwe closed 4 months ago

isuruwe commented 4 months ago

Give this error in event viewer in win server 2022 and exit app but run on win 10

Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at .td.ClientManager.execute(td.tl.unique_ptr, td.tl.unique_ptr) at Telegram.Td.Client.Execute(Telegram.Td.Api.Function) at ChannelWriter.Telegram.Agent+d24.MoveNext() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[ChannelWriter.Telegram.Agent+d24, ChannelWriter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]](d__24 ByRef) at ChannelWriter.Telegram.Agent.OnDoWork(System.ComponentModel.DoWorkEventArgs) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(System.Object) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, System.Object[], System.Object, System.Object[] ByRef) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessageSink) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()

isuruwe commented 4 months ago

issue was target pc not installed latest version of Microsoft Visual C++ Redistributable. latest version is 14.40.33810.0