简体   繁体   中英

Will Qt's plugin crash the main program?

If there is a bad plugin that crashes within itself (inside it's own code part).

Will this cause the program which load this plugin to crash too?

Is it true that the only way to keep the main program safe is to run two process and have IPC?

Yes, the plugin runs in the same process as the rest of the application, and when something crashes, the whole process crashes. So yes, AFAIK, you do need a separate process to ensure the kind of reliability you're looking for.

That's why WebKit (and its offspring web engines) spawn a separate process for each opened tab.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM