Results 1 to 2 of 2

Thread: Invalid _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) while deleting plot curve

  1. #1
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Invalid _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) while deleting plot curve

    I am using
    Qt 5.3.2
    qwt 6.1.2
    Visual Studio 2012
    Windows 7, x64

    The following code gives invalid _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) while deleting the plot curve. Any idea?
    Qt Code:
    1. QApplication *app=new QApplication(argc,argv);
    2. QwtPlot *window = new QwtPlot();
    3. QwtPlotCurve *d_curve1 = new QwtPlotCurve( "Amplitude" );
    4. d_curve1->setRenderHint( QwtPlotItem::RenderAntialiased );
    5. d_curve1->setPen( Qt::yellow );
    6. d_curve1->setLegendAttribute( QwtPlotCurve::LegendShowLine );
    7. d_curve1->setYAxis( QwtPlot::yLeft );
    8. d_curve1->setXAxis( QwtPlot::xBottom );
    9. d_curve1->attach( window );
    10. window->show();
    11. app->exec();
    12. delete window; // Assertion fails here
    13. window = NULL;
    14. delete app;
    15. app=NULL;
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Invalid _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) while deleting plot curve

    Any suggestions?

Similar Threads

  1. Replies: 2
    Last Post: 14th May 2015, 13:30
  2. Plot x^2 curve
    By qt_developer in forum Qwt
    Replies: 4
    Last Post: 14th June 2012, 08:17
  3. Replies: 2
    Last Post: 23rd August 2011, 12:23
  4. deleting invalid pointer
    By hollowhead in forum General Programming
    Replies: 11
    Last Post: 30th April 2010, 10:47
  5. Deleting points from a curve dynamically
    By maneesh18187 in forum Qwt
    Replies: 2
    Last Post: 9th February 2010, 18:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.