WebToast Raised Error

Hello,

in my project i have to create toast at runtime and show it dynamically. because of that i made this project down below for reference and i came across this error.Is there any solution or workaround for this?

For catching error user should press x button on toast.

Error:

Project:
WebToast.zip (1.6 MB)

Thanks for viewing this topic.

I compile & run your project and I see no error

Do you use the latest version of TMS WEB Core?

Hi Bruno,

I am sorry i didnt specify how i get that error. When user closes or should i say clicks x button in toast. it is raises error.

image

Thanks for quick reply.

That's because you freed your webtoast component.
So afterwards when it hides (when you press the X), it's an invalid object.

1 Like

You should not Free the toast yourself. When you close it, it will be freed. Now you close an already freed toast

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.