Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Aurimas Černius
Aurimas Černius
@aurisc4@floss.social  ·  activity timestamp 3 weeks ago

Oh dear, how tricky is the Gtkmm RefPtr.
Sure, the concept of ref counting is simple. But the fact that you have to use make_refptr_for_instance for your custom classes and no staight forward way of converting instace to RefPtr wrapping it lures you into traps. RefPtr constructor happily taking a pointer is one such trap.
Spent nearly 4 hours chasing a weird crash because of this.

#programming #gtk

  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct