Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

Bug: Crash showing tooltip of MediumText field

LutzT's profile image LutzT posted 5 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 5 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, 5 years ago, revision 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 5 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.

LutzT's profile image LutzT posted 5 years ago Permalink

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

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




Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.