Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simpletext bug #28

Closed
andreaagostini opened this issue Jul 4, 2018 · 1 comment
Closed

simpletext bug #28

andreaagostini opened this issue Jul 4, 2018 · 1 comment

Comments

@andreaagostini
Copy link

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
Copy link
Contributor

tap commented Jul 9, 2018

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

tap added a commit that referenced this issue Jul 9, 2018
tap added a commit that referenced this issue Jul 9, 2018
@tap tap closed this as completed Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants