pothosware / pothos-library

Framework library used by all Pothos projects
www.pothosware.com
4 stars 0 forks source link

delete automatic ports when all are disconnected #59

Closed guruofquality closed 9 years ago

guruofquality commented 10 years ago

Otherwise, a reconfiguration of the topology could fail when a port is disconnected that expected data.

guruofquality commented 10 years ago

I should add as a comment, that the automatic allocation should not really be occurring until there is a positive connection between two actual blocks. We do not want to cause an automatic connection when connecting a port within a hierarchy, where that hierarchy port is not externally connected yet.

guruofquality commented 9 years ago

This adds automatic deallocation: https://github.com/pothosware/pothos/commit/dae8bf80dff9b57262963fa554ddec615e6f9923

However the comment above is still a relevant issue. Lets consider solving that with the functional markup, because that same issue will crop up about connecting only actual ports based on markup through hierarchies... https://github.com/pothosware/pothos-library/issues/43