hi,
whoever attempted closing /doc/5.reference/pointer.pd (is there anyone that curious?), would have probably noticed a strange behaviour:
(as it was loaded) crashes Pd.
does not crash Pd.
After some digging I found that:
``figure out how to get rid of data having this template''. It is marked `LATER'.
scalars that use this template -- and if the canvas holding those scalars has its window open, then Pd dies. The reason: freeing a visible canvas means calling vis-routines of all objects in this canvas -- scalar_vis() is called, while there is no template.
dies quietly, with no error message printed. Adding an early check into scalar_vis() would work as a temporary safeguard:
float basex, basey;
``scalar: couldn't find template'', but it is much lesser evil than crashing.
If data-canvas had been stored within pointer.pd file before tamplate-canvases, no crash would have occured.
Krzysztof