Bug: Crash showing tooltip of MediumText field

LutzT posted 1 year ago in General

How to reproduce:

  1. Create a tabel having a MediumText column
  2. fill table and this column with a lot of text (e.g. 400.00 characters)
  3. show table as preview in HeidiSQL
  4. Hover mouse over a MediumText cell -> HeidiSQL crashes my guess: tooltip character length is somehow not limited...

Thanks and regards, Lutz T.

ansgar posted 1 year ago

Yes, good guess. And I guess I can check for a maximum length before processing a tooltip which would crash the application.

ansgar posted 1 year ago

It was not the size of the text for the hint window, which I already restricted to 1KB. Instead, setting LineBreakStyle for that hint window to hlbForceSingleLine caused the crash. Setting it back to hlbForceMultiLine fixed that here.

Please update to r5120 and report back here if that fixes it for you too.

LutzT posted 1 year ago

Great! No crash anymore :-) Thanks a lot!

Please login to leave a reply, or register at first.