Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Non-static plugin segmentation error
Forum Updated to NodeBB v4.3 + New Features

Non-static plugin segmentation error

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    ws22
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      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.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        ws22
        wrote on last edited by
        #3

        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 +=@

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved