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

Does ESPAsyncE131 can be destroyed? #23

Open
vvip-68 opened this issue Oct 19, 2021 · 1 comment
Open

Does ESPAsyncE131 can be destroyed? #23

vvip-68 opened this issue Oct 19, 2021 · 1 comment

Comments

@vvip-68
Copy link

vvip-68 commented Oct 19, 2021

I use dynamically created object with
ESPAsyncE131 *e131; ... e131 = new ESPAsyncE131(UNIVERSE_COUNT);
and use it until necessary.
Next when I need to change params for object (for example amount of universe, start universe, etc.) I destroy object with delete[] e131 and try to re-create it and almost immediately have a crash with either wdt error or an error of access to invalid memory area.

I didn`t see in code of library any destructor and free buffers code.
Which is the correct way to destroy object and/or re-create it with changed parameters?

@netmindz
Copy link

A key part of the start is setting up the multicast, so you might be able to call that without need to destroying the full object

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