Project

General

Profile

Actions

Bug #4580

closed

AdiIRC crashing on right click into a custom statusbar item

Added by westor (GR) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
05/11/2019
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

There is a strange crash, when i right click in the statusbar into the custom item that i created via /statusbar it crashing, probably because i did not use a @window in parameter.

Example Code: https://pastebin.com/AfGGAXnZ

Crash details:

Object reference not set to an instance of an object.

Void OnMouseHover(System.EventArgs)

   at AdiIRC.GUI.Controls.StatusLabel.OnMouseHover(EventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.MouseHoverTimer.OnTick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

- Thanks!

Actions #1

Updated by Per Amundsen almost 5 years ago

  • Category set to Scripting
  • Status changed from New to Resolved
  • Assignee set to Per Amundsen

This seems related to constantly removing and adding the item in the Statusbar. You can use the "-g" parameter to just change the text.

I fixed the crash though.

Actions #2

Updated by Per Amundsen almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF