Bug: Crash showing tooltip of MediumText field

[expired user #8611]'s profile image [expired user #8611] posted 8 years ago in General Permalink

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's profile image ansgar posted 8 years ago Permalink

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

Code modification/commit 287ac27 from ansgarbecker, 8 years ago, revision 9.3.0.5120
Fix crash when showing hint (animation) on grid cells with large text portions.
See
* http://www.heidisql.com/forum.php?t=20458#p20548
* http://www.heidisql.com/forum.php?t=22277
ansgar's profile image ansgar posted 8 years ago Permalink

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.

[expired user #8611]'s profile image [expired user #8611] posted 8 years ago Permalink

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

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