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:

    @#ifndef HERBERTPLUGINTERFACE_H
    #define HERBERTPLUGINTERFACE_H

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

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

    Q_DECLARE_INTERFACE(HerbertplugInterface,"com.quins.QuinsMaster.HerbertplugInterface/1.0")

    #endif // HERBERTPLUGINTERFACE_H@

    and here my pro file of the plugin:

    @QT += core gui sql

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

    HEADERS +=
    herbertPlugin.h

    SOURCES +=
    herbertPlugin.cpp

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

    FORMS +=@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.