Author Topic: Trailing NULL in clipboard data with GTK2  (Read 3302 times)


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4002
  • I like bugs.
Trailing NULL in clipboard data with GTK2
« on: June 03, 2017, 11:30:25 am »
Attention BBasile and others who were hit by this issue:
I had to add define GTK_REMOVE_CLIPBOARD_NULL around the code that removes the NULL.
It will be in Lazarus 1.8RC2.
With a new version, add the define to Configure Build Lazarus dialog, check it and save settings. Next time you build Lazarus, the trailing NULL will be removed again.

Removing the trailing NULL here was apparently a wrong way as it created a regression bug, preventing copy/paste between Lazarus instances.
That affected all GTK2 users but now it works again by default.

The trailing NULL bug appeared only in some machines, depending on window manager and desktop system I guess. For example I have not experienced it.

I still hope somebody studies the issue and fixes it properly.
« Last Edit: June 03, 2017, 06:04:51 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.


  • Guest
Re: Trailing NULL in clipboard data with GTK2
« Reply #1 on: August 24, 2017, 03:21:00 pm »
I've decided not to update to 1.8 so i won't be affected by the step back.


TinyPortal © 2005-2018