scorninpc / php-gtk3

GTK3 extension for PHP
https://andor.com.br/
GNU Lesser General Public License v3.0
114 stars 10 forks source link

Heap memory cleanup #160

Open d47081 opened 1 month ago

d47081 commented 1 month ago

As PHP send object creation request to CPP, what about (heap) memory cleanup there?

I mean delete operation for every new widget construction

scorninpc commented 1 month ago

We have some issues about it, but all teorical universe

https://github.com/scorninpc/php-gtk3/issues/81 (here we implement some things to try some tests) https://github.com/scorninpc/php-gtk3/issues/42 https://github.com/scorninpc/php-gtk3/issues/151

Have you facing some problem?

d47081 commented 2 weeks ago

No, not facing

Introduction to Memory Management in GTK+ looks useful for manual management, but here is another way, by gtkmm wrapper for C++ Chapter 25. Memory management - Gtk::make_managed()

Suppose it could be much useful for PHP implementation