I developing a coffe shop software and what i trying to do here is that i want to display video in the two screen machine that is one side showing video and another side shows the takeing oreder screen. When there is an order from customer the video will switch to orderpage so the customer can see what they has ordered and how much they have to pay and after the have paid the money the screen should switch back and play vide. I got this error below when the screen is chang from playing vidoe to order page.

Here is an error

attempt to read or write protected memory. this is often an indication that other memory is corrupt

any comment is appreciated.

Thanks.

Can you please post the code that is throwing the error?