I have my application migrated to Delphi 10.1 and database PostgrSQL. All exes works fine on windows 7.I have shifted my code on windows 10 system.On close of exe I get access violation error.
Stack trace gives me:
Form 2 is called using showmodal on create of form1. Code written on cancel button on form2 is: application.Terminate; Modal result is 'mrCancel' of the button. How do I resolve this error? Access violation comes after Application.run.