[GH-ISSUE #306] Error [(<OnUIThreadSync>b__0:0)] #1226

Closed
opened 2026-02-28 12:03:11 +03:00 by kerem · 3 comments
Owner

Originally created by @stetze on GitHub (Oct 25, 2022).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/306

Originally assigned to: @VShawn on GitHub.

[T:001][18:25:55.841] Error [(b__0:0)]

System.Runtime.InteropServices.COMException (0x8000FFFF): Schwerwiegender Fehler (Ausnahme von HRESULT: 0x8000FFFF (E_UNEXPECTED))
bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor)
bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753.

StackTrace: bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor)
bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753.

Originally created by @stetze on GitHub (Oct 25, 2022). Original GitHub issue: https://github.com/1Remote/1Remote/issues/306 Originally assigned to: @VShawn on GitHub. [T:001][18:25:55.841] `Error` [(<OnUIThreadSync>b__0:0)] > System.Runtime.InteropServices.COMException (0x8000FFFF): Schwerwiegender Fehler (Ausnahme von HRESULT: 0x8000FFFF (E_UNEXPECTED)) bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor) bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.<SetRdpResolution>b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753. > StackTrace: bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor) bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.<SetRdpResolution>b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753.
kerem 2026-02-28 12:03:11 +03:00
Author
Owner

@majkinetor commented on GitHub (Oct 25, 2022):

Pending delition.

<!-- gh-comment-id:1290858360 --> @majkinetor commented on GitHub (Oct 25, 2022): Pending delition.
Author
Owner

@VShawn commented on GitHub (Oct 26, 2022):

bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor)
bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753.

so it die here:

https://github.com/1Remote/PRemoteM/blob/dev_net6/Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.xaml.cs#L741-L760

I dont think an assignment statement at line 753 will throw a COMException...

And since a try block here, exception should have be catched...

I have no idea how to fix this ticket based on current information.

Pending delition.

@majkinetor

hey, what's that? you mean deletion?

<!-- gh-comment-id:1291729786 --> @VShawn commented on GitHub (Oct 26, 2022): > bei MSTSCLib.IMsRdpClient9.UpdateSessionDisplaySettings(UInt32 ulDesktopWidth, UInt32 ulDesktopHeight, UInt32 ulPhysicalWidth, UInt32 ulPhysicalHeight, UInt32 ulOrientation, UInt32 ulDesktopScaleFactor, UInt32 ulDeviceScaleFactor) bei PRM.View.Host.ProtocolHosts.AxMsRdpClient09Host.<>c__DisplayClass49_0.b__0() in D:\DemoProject\PRemoteM-NET6\Ui\View\Host\ProtocolHosts\AxMsRdpClient09Host.xaml.cs:Zeile 753. so it die here: https://github.com/1Remote/PRemoteM/blob/dev_net6/Ui/View/Host/ProtocolHosts/AxMsRdpClient09Host.xaml.cs#L741-L760 I dont think an assignment statement at line 753 will throw a COMException... And since a try block here, exception should have be catched... I have no idea how to fix this ticket based on current information. > Pending delition. @majkinetor hey, what's that? you mean deletion?
Author
Owner

@majkinetor commented on GitHub (Oct 26, 2022):

Yeah, this ticket is rude.

<!-- gh-comment-id:1291749265 --> @majkinetor commented on GitHub (Oct 26, 2022): Yeah, this ticket is rude.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#1226
No description provided.