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

After clicking "Copy" in UPS variables the UI crashes #198

Open
2 of 4 tasks
codiflow opened this issue Nov 27, 2024 · 0 comments
Open
2 of 4 tasks

After clicking "Copy" in UPS variables the UI crashes #198

codiflow opened this issue Nov 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@codiflow
Copy link

codiflow commented Nov 27, 2024

Please make sure to fill out this form completely, and attach your program logs (set to Debug setting). You can delete this line.

  • Searched to see if this issue exists
  • Completed below form
  • Attached debug log file
  • Copy output in File -> UPS Variable

WinNUT Version: v2.3.8988
Windows OS Version: Windows Server 2016 Essentials Build 14393

Describe the bug
After I click on "Copy" in UPS variables the UI crashes with the error message System.Runtime.InteropServices.ExternalException (0x800401D0): Der angeforderte Clipboard-Vorgang war nicht erfolgreich.. Full error log at the end of this issue.

The path mentioned in this error looks wrong (no user Glen on this machine):
C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client\List_Var_Gui.vb

To Reproduce
Steps to reproduce the behavior:

  1. Click on UPS variables
  2. Click on Copy
  3. Crash (Error message appears)
  4. If I click on the X in the upper right corner the UI vanishes but the process is still running in the background. Need to shoot it with the task manager to be able to start the UI again.

Expected behavior
The UPS variable content should be copied to the clipboard.

Screenshots
image

Additional context
Error message:

System.Runtime.InteropServices.ExternalException (0x800401D0): Der angeforderte Clipboard-Vorgang war nicht erfolgreich.
   bei System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
   bei System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy, Int32 retryTimes, Int32 retryDelay)
   bei System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   bei System.Windows.Forms.Clipboard.SetText(String text)
   bei WinNUT_Client.List_Var_Gui.Btn_Clip_Click(Object sender, EventArgs e) in C:\Users\Glen\Repositories\nutdotnet\WinNUT-Client\WinNUT_V2\WinNUT-Client\List_Var_Gui.vb:Zeile 158.
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@codiflow codiflow added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants