Menu

#1158 shmem : on free method shared memory segment is remove even if it's still attached

v0.45
open
None
5
2014-10-13
2014-10-03
No

When closing and reopening a patch using shmem, [shmem] doesn't work until all install have been reallocated in other process.

To reproduce :
1. open twice instance (sender A and receiver B) of shmem-help.pd
2. in A, change values in array1 and then click [me umset array1( then click [memdump array2( in B.
3. array2 should display the value you enter in A's array1
4. close A, then reopen it and reproduce 2. The B's array2 is no more updated.

If you close Pd instead of only closing the patch, and then reopen it, it works.
This is because shmem_free() is not called when closing Pd without closing the patch.

Here is attached a patch that solves the issue.

1 Attachments

Discussion

  • Antoine Villeret

    this seems to be fixed,
    could you confirm and in case close the issue ?
    (I still can't close an issue mylself)

     
  • Cyrille Henry

    Cyrille Henry - 2014-10-13

    i can't reproduce the bug, so look fixed.
    thanks

     

Anonymous
Anonymous

Add attachments
Cancel