I hit problem on release instance.
It seems related to the bitmap animation but I cant reproduce it easily.
I try to do a application to create and release in every 30s case. It will have exception in a hour or half hour case.
In our production application, it will random show the violation address during release the plugin.
Please advise how to locate the problem and how to solve.
My environment is : delphi 10.2.2 hydra version 220.127.116.113.
I create a visual plug in fmx and load that plug in vcl.
Code to create instance:
if MainFormInstance <> nil then
// ModuleManager.CreateInstance(‘FmxVPForm_ScanCard’, MainFormInstance); //create a new instance
ModuleManager.CreateInstance(‘NewVisualPlugin_Menu’, MainFormInstance); //create a new instance
if MainFormPlugin <> nil then
Code to release instance: