Important: Please read the Qt Code of Conduct -

Non-static plugin segmentation error

  • hello everybody,
    i get an segmentation error if i create more than one plugin in subdirs of my project.
    if i have only one subdir-project which creates the plugin everything works fine.
    whats the problem?
    i´m using windows xp / qt 4.8.0

    thanks in advice!

  • Moderators

    I don't think anyone will be able to help without substantially more information. I don't know of anything just on the merit of creating multiple plugins in subdirs which would cause a crash.

  • hello mlong,
    thanks for the reply!
    the error occours when i emit a virtual funktion of my interface class. that happens only if i have more than one .dll in my plugins folder. if i have only one .dll plugin in it exactly this virtual funktion works perfect.
    i have tried it with the plug & paint example and there i have the same error if i build a second plugin.

    this is my interface:


    #include <QString>
    #include <QtCore>
    #include <QMainWindow>

    class HerbertplugInterface
    virtual ~HerbertplugInterface() {}
    virtual QString echoherbertplug(const QString &messageHerbert) = 0;



    and here my pro file of the plugin:

    @QT += core gui sql

    TEMPLATE = lib
    CONFIG += plugin
    INCLUDEPATH += ../Test

    HEADERS +=

    SOURCES +=

    TARGET = $$qtLibraryTarget(herbertplug)
    DESTDIR = ../plugins

    FORMS +=@

Log in to reply