simpletext bug
andreaagostini opened this issue · 1 comments
andreaagostini commented
Hi,
the simpletext example is buggy:
- Build simpletext, run Max, instantiate in a patch
- Double click on the simpletext object, the editor opens
- Type some text in the editor
- Close the editor
- Double click again, the editor opens
- Without closing the editor, delete the simpletext object in the Max patcher
- Hover the mouse on the editor window
Result: sometimes error messages in the Max console, sometimes crash.
I assume this is because the editor should be destroyed in simpletext_free(). Will do some testing.
Cheers,
andrea
tap commented
Thanks for the report. Yes, object_free() is definitely supposed to be called on the editor when the object is freed!
As a side note, it's harder to mess that up using the texteditor
in the C++ API @ https://github.com/Cycling74/min-devkit