Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The compiled CTK dynamic library is used normally in release mode and reports an error in debug mode. #1094

Open
ZhangAdjy opened this issue Jun 12, 2023 · 0 comments

Comments

@ZhangAdjy
Copy link

I successfully compiled the dynamic library with Qt 5.15.2+VS2019. I created a new project to test, the code is as follows. In debug mode, when executing framework->init(), the code crashes with the message "Exception at 0x7ff9de62cf19, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued)".Hope to get your help, thank you

QCoreApplication app(argc, argv);

app.setApplicationName("SampleCTK");//给框架创建名称,Linux下没有会报错
ctkPluginFrameworkFactory frameWorkFactory;
QSharedPointer framework = frameWorkFactory.getFramework();
try {
// 初始化并启动插件框架
framework->init();
framework->start();
qDebug() << "CTK Plugin Framework start ...";
} catch (const ctkPluginException &e) {
qDebug() << "Failed to initialize the plugin framework: " << e.what();
qDebug() << e.message() << e.getType();
return -1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant