PDA

View Full Version : QWT application initialization error



Urban
30th March 2008, 04:14
Here is what grinds my gears: I am using QT v4.3.3 with Dev C++ (4.9.9.2 beta) on Win XP SP2, and recently have installed qwt. I am trying to run the examples. The compilation process goes just fine - no errors, but ultimately, when running the application what I get is an initialization error (#0xc0000005) - the application was not properly initialized. What that could mean? What am I doing wrong?
TIA,
Best
Urban

Uwe
30th March 2008, 10:01
Did you add QWT_DLL to you compile flags ?

Uwe

Meiosch
14th September 2008, 09:20
Hello,

i have the same problem on Win Vista with QT 4.4.1, MinGW 3.4.2 and QWT 5.1.1. I'm also using eclipse 3.4.


Did you add QWT_DLL to you compile flags ?

Uwe

Could you explain that in more detail please?

Thanks

Meiosch
17th September 2008, 11:17
Hello again,

i just realized that my problem is a little bit different.

The examples are working fine.
But the following program produces the initialization error 0xc0000005 ..

Maybe someone could help me


plotwidget.cpp

#include "Plot.h"
#include "plotwidget.h"

PlotWidget::PlotWidget(QWidget *parent)
: QWidget(parent)
{
plot = new MyPlot(this);

ui.setupUi(this);
}

PlotWidget::~PlotWidget()
{

}

and the plot.cpp

#include "Plot.h"

MyPlot::MyPlot(QWidget *parent):
QwtPlot(parent)
{

}

MyPlot::~MyPlot()
{

}

Everything works until i try to run the program