Jump to content

wbiker

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by wbiker

  1. QUOTE(tcplomp @ Sep 11 2007, 03:28 PM)

    Hi wbiker,

    good you already found the memory leak. It made it quite easy for me to find the problem.

    You should register for the events outside the while loop.

    Now you re-register every time the while loop executes (for every event).

    So register before the while loop (and unregister after the while loop)

    Ton

    Thanks a lot !!!

    Now it works fine.

    wbiker

  2. Hello again,

    I have found a probem!! (but I still i don't know why it occures:( )

    In one of the SubVIs there are dynamic events used in order to refresh Front Panel during the measurement. This solution is used because measurement loop is inside another SubVI.

    The problem is that after starting the measurement memory consumption (can be observed in Task Manager) is getting higher and higher (should be almost at the same level) so after 1000-th iteration it is about 150MB. This "memory leak" is the reason why entire application gets stuck at the end.

    I simplified the VI I mentioned so it is possible to run it without any hardware, I put it as an attachement.

    Could you please look at this and give me some advice.

    Thanks in advance

    wbiker

  3. QUOTE

    By clicking the stop button on the toolbar you are not stopping the VI but really aborting it.

    I wasn't clear enough, sorry.

    My applicattion has special even case to handle the stop action. The problem appears on execution the stop event case.

    QUOTE

    Show us your code - we really can't diagnose the problem without it.

    It is really big application to show the code I would have to present ~200vi's.

    Please give me just some ideas what it can be.

    Thanks

    wgbiker

  4. Hello,

    I have a problem with quite complex VI. The problem is that when I'm trying to finish (by clicking STOP BUTTON in an event structure) VI gets suspended, CPU ussage goes to 100%. This state can last a few minutes or forever. This behaviour can be seen mainly after long time VI working.

    Application was tested under LV 8.2 and 8.21 as .exe and .vi - behaviour is the same.

    Thanks in advance for your help.

    wbiker

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.