Results 1 to 2 of 2

Thread: Memory problem with plot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Memory problem with plot

    I am working on software written in c++. It takes input as pressure transducer, and generate graph of pressure, AC, DC, and pitch. This also has scroll back facility after recording. I am storing data object QPointF(float,float) in memory. It's like oscilloscope example with scroll bar facility. But, its consuming memory as graph progresses. So, it just broke after few hundred seconds of recording. Is there any way to improve memory consumption in graph?(any hint will help) its my first post, so might be very broad question. I will try to narrow down eventually.

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Memory problem with plot

    So, it just broke after few hundred seconds of recording.
    What is the QPoint count when the program "broke"?

    BTW, what do you mean by "broke"?
    Did it crash (SEG ERROR)?
    Did it just ran of memory (bad_alloc exception...)?
    Did it stop responding (after eating up all system memory)?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Problem with zooming the plot
    By junhonguk in forum Qwt
    Replies: 2
    Last Post: 26th June 2012, 13:53
  2. Problem to plot 3D graph using QWT
    By johnMick in forum Qwt
    Replies: 4
    Last Post: 26th July 2011, 09:44
  3. Problem saving a plot
    By kalos80 in forum Qwt
    Replies: 2
    Last Post: 10th July 2008, 08:31
  4. Qwt-Plot Zoomer Problem??
    By maveric in forum Qwt
    Replies: 0
    Last Post: 3rd July 2008, 07:58
  5. Qwt plot problem on compile
    By sincnarf in forum Qwt
    Replies: 2
    Last Post: 14th October 2007, 11:36

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
  •  
Qt is a trademark of The Qt Company.