[英]Delphi Firemonkey mobile app will crash when using Teechart
I am developing an application, I have a main form and a button, when I click on a button I show another form that there is a TeeChart on it, when I close the second form and return to the Main Form the will crash (both ios Device and Simulator) and in log console on mac there is a "Exit with code:1" log. 我正在开发一个应用程序,我有一个主窗体和一个按钮,当我单击一个按钮时,我会显示另一个窗体上有一个TeeChart,当我关闭第二个窗体并返回到主窗体时,将会崩溃(两者均会崩溃) ios设备和模拟器),并且在Mac上的日志控制台中,有一个“代码退出:1”日志。 I test it on an Android device but it works fine.
我在Android设备上对其进行了测试,但工作正常。 Any idea?
任何想法?
I found the problem, when you remove the graph form "Auto create forms" (in project options) and new the graph form in code and then close and free the graph form, the problem will happen, Instead let it be in "auto create forms" and when you want to show the graph use 我发现了问题,当您删除图形形式“自动创建形式”(在项目选项中)并在代码中新建图形形式,然后关闭并释放图形形式时,就会出现问题,而应该是在“自动创建”中表格”,以及当您想要显示图形时
frmgraph.show();
frmgraph.BringToFront();
and instead of closing the form use 而不是关闭表单使用
Hide();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.