应用程序插件
我正在使用 JEDI 插件技术为我的应用程序开发一些插件,但是我遇到了很多内存共享问题,特别是在处理数据库连接时。 主应用程序使用 FASTMM4 内存管理器。 有谁知道一种更简单的框架来使用插件吗?
I'm developing some plugins to my application using the JEDI Plugin tecnology, but I run into a lot of problems with memory sharing specially when it handles Database connection. The main application uses the FASTMM4 memory manager. Does any one knows a bit more easy framework to work with plugins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JVCL 插件管理器工作得很好,但如果您想与插件正确共享内存,则需要将 SimpleShareMem.pas 添加到应用程序和插件的使用子句中,位于项目文件中使用列表的顶部。
The JVCL plugin manager works just fine, but if you want to share memory properly with your plugins, you need to add SimpleShareMem.pas to the uses clause of both your app and the plugins, at the top of the uses list in the project file.
你们的插件也使用 FASTMM4 吗? 您需要确保在应用程序和插件中使用相同的内存管理器。
Do your plugins also use FASTMM4? You need to make sure you are using the same memory manager in both the application and the plugin.