humphd / VncSharp

VncSharp is a GPL implementation of the VNC Remote Framebuffer (RFB) Protocol for the .NET Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index out of array error when logging in to a mac

TheNetStriker opened this issue · comments

I'am using VncSharp to connect to my mac. Since a few years Apple has implemented a login screen to select which user to log on. This screen loads, but after I enter my passwort I get a disconnect event. I traced the error in the code and found the following error:

Index was outside the bounds of the array
VncSharp.Framebuffer.set_Item(Int32 index, Int32 value) in d:\Sourcesafe\RDPConsoleWpf\VncSharp\Framebuffer.cs:Zeile 71.
VncSharp.Encodings.EncodedRectangle.FillRectangle(Rectangle rect) in d:\Sourcesafe\RDPConsoleWpf\VncSharp\Encodings\EncodedRectangle.cs:Zeile 186.
VncSharp.Encodings.ZrleRectangle.Decode() in d:\Sourcesafe\RDPConsoleWpf\VncSharp\Encodings\ZrleRectangle.cs:Zeile 72.
VncSharp.VncClient.GetRfbUpdates() in d:\Sourcesafe\RDPConsoleWpf\VncSharp\VncClient.cs:Zeile 394.

Maybe this error occurse because after the login screen the screen size is adusted to the desktop size. Could you please fix this error?

It seams that after the latest mac updates the vnc screen does not resize any more after the login screen. Maybe this was a mac related bug?