leak memory using daqmx with c#

Hello

I m of the problems using the c# to DAQmx API. I have attached a sample program to demonstrate the way in which I use the API.

The problem I m facing is that the application needs memory more and more over time. My hypothesis is that leaking memory has occurred somewhere I tried different ways to call the API and read the documentation on methods, but I still didn t manage to get around this problem.

Any help is the aprechiated!

PS: A brief description of my program:

-Create tasks (DI, HAVE, AO)

-Add channels (DI, DO, HAVE,)

-StartTasks

-Start the Thread and cyclical read/write of the current values to/from local variables

Hi niwaly,

I recommend that you test the examples. This way you can be sure that the issue is not the driver itself, and you can debug your application. It can also give you a clue on how to proceed.

If you have any examples in the file that I mentioned, you have not installed the driver with c# additional support during the installation procedure.

Here are some examples:

http://www.NI.com/white-paper/6999/en

Kind regards

Heinz

Tags: NI Hardware

Similar Questions

  • Leak memory using beep()

    I have several Windows 7 64-bit machines which showed a pretty annoying problem.  After about a week of running my application, computers which began with 4 GB of ram to run out of available memory.

    After 6 months of trying to run towards the bottom, I finally came with the following test code:

    #include
    Sub main (int argc, char * argv [])
    {
    While (TRUE)
    {
    Beep (8000,50);
    Sleep (50);
    }
    } / * main * /.

    With this program running, I lose about 100 MB (Yes, MB) memory on time.  With the help of sysinternals, I see that it is consumed in the form of memory locked "pilot".  I have tested on several computers windows 7 and get the same result.

    Only a reboot will restore memory.  Can someone help me find a solution to this problem?

    Thank you.

    Hello

    The question you posted would be better suited to the Technet community. Check out the link and ask the question.

    http://social.technet.Microsoft.com/forums/en/w8itprogeneral/thread/1df1486c-1699-43f9-8d77-4732b5b2e2af

  • Will be the leak memory for the queue when it is used in producer and mode of consumption data acquisition transfer different size table.

    In data acquisition, I use a loop to query the data from the hardware, another loop to receive the data from query sent by queue loop.

    Each time the size of the transferred data matrix is perhaps not the same, so the system can assign different table size and recycle frequently.

    It cost memory leak. Or it will slow down the performance, given that the size of the array is not fixed, so everytime need to create a new array of size.

    Any suggestion or the best method.

    If I understand your description, your DAQ loop acquires data with the parameter of the function of reading-'1 ' for reading at the DAQmx samples. This translates into different picture sizes.

    Passage of these tables directly to a queue is valid and she didn't mind important in performance (at least AFAIK) and it certainly does not leak memory.

    So the question is more or less:

    It is valid that the consumer receives sizes different picture for analysis? How your consumer manages these tables?

    hope this helps,

    Norbert

  • Leak memory with Explorer.exe in the videos folder.

    Leak memory with Explorer.exe in the folder of videos with thumbnails enabled. Using the resource monitor, I can see that explorer.exe is playback of video files, while the memory gradually increases until it is 99%. No such problem with memory leak when I put the provision 'list' (i.e. without thumbnails). Disabling thumbnails also eliminates the problem of memory leak, but this isn't what I want.  Main videos folder is. MKV files, with the codec video within the container MKV h.264 high profile. I tried to dissociate all media files with Media Player Classic Home Cinema (which I use to watch mkv videos).

    More important, this problem seems only appeared after I installed SP1.

    Win7 x 64 Ultimate SP1, C2D E8500 8 GB of RAM, Western Digital 2 to Green Caviar.

    More info: I realized that this only happens with the video files that don't have any generated tile. It's like Windows Explorer is reading through the entire video file to generate a thumbnail, but even after awhile that yet, it does not generate a thumbnail.

    How to fix? Help! Thank you!

    OMG, I DISCOVERED WHY. IT IS DIVX HE WAS CAUSING. THE MOMENT I HAVE NOT UNINSTALLED NO MORE PROBLEMS! LIVE DIVX!

  • excessive use of the memory of cRIO with without execution of the VI...

    I have a cRIO-9073 which seems to work with very high memory use, even when no VI is actually being run.  For example, if I format the cRIO, install the standard cRIO WHAT RTF S/W set (without the analytical engine) and then open Distributed System Manager OR I get 85% (!) memory usage.  I did the format and reinstall to ensure doubly as no VI is running.  I have used several other cRIOs, but I do not remember the operating system that requires this amount of memory.

    Attached pictures of the s/w installed and distributed system manager.

    When I'm not running my VI, I am of course short of memory.

    HI Brad,

    I have a 9073, and Yes, the standard operating system uses about 80-90% memory.  You must choose the custom installation and strip off as much as possible.  I have been using 9074 controllers since this experience.  I hope that you can run your application by following these tips.

    Good luck

    Michael

  • Can we make the components of the Windows kernel (OS) & Windows (OS) more suitable for all platforms, hardware with optimization and minimize emissions & memory use by better algoritm, any possibility?

    We know that in mathematics and computer science, an algorithm is a procedure step by step for calculations.

    If we follow a regular algoritm to solve the power problem, for example to raise something to a large number of say, calculate something to the power of 1 000 000 000... It will take several hours, so if we use "Indian algorithm" it will solve in seconds.

    A faster algorithm is to use the algorithm next (also known as the "Indian algorithm"):

    If n = 0, x ^ n is equal to 1.
    If n = pair, then x ^ n is equivalent to (x ^ (n/2)).
    If n = odd, so x ^ n is equal to x * (x ^ (n-1)).

    For example

    3 ^ 10 = square (3 ^ 5) (= 59049)
    3 ^ 5 = 3 * (3 ^ 4) (= 243)
    3 ^ 4 = square (3 ^ 2) (= 81)
    3 ^ 2 = square (3 ^ 1) (= 9)
    3 ^ 1 = 3 * (3 ^ 0) (= 3)
    3 ^ 0 = 1 (= 1)

    Now, there are so many things (algorithms) available for the practical implementation, by which we can reduce serious memory use time, computation time, size of implementation and increased capacity... what operating system, size becomes very low (small size) treatment...
    (my letter to MS - RTCProd = 013-744-425' USE of ALGORITHM for DEC/REDUCER THE MEMORY REQUIREMENT OF SPECIFIC PROGRAMS)

    Now, what are the means by which we can implement virtually it bone? We offer possible methods. (If it is clear, there is tremendous opportunity again, we just need to know the varying responses that can climb/go out with new ideas)

    {moved from virus and malicious software}

    MSDN and TechNet forums can be found here:

    http://social.msdn.Microsoft.com/forums

    http://social.technet.Microsoft.com/forums

    -steve

  • Is it possible to monitor the % memory used - watch memory leaks

    Is it possible to monitor the % memory used - look at leaks memory and want to warn % used is grewater to 90% on NON - enterprise Hyperic 3.2.1 as the CPU
    is done. Why don't Hyperic monitoring the use of the memory as a percentage of the total?

    hypermike,

    This will be in 4.0:
    http://JIRA.Hyperic.com/browse/HHQ-2157?page=com.atlassian.JIRA.plugin.System.issuetabpanels:all - tabpanel

    -jeremy

  • character OCR file causes the leak memory during OCR. Please can someone help?

    I'm trying to use the OCR to read characters from a LCD.

    All works :-) but... it leaks a LOT of memory, becoming unusable in a loop.

    I think the problem is the file of character. I tried several ways to create a (for example of the Interior vision assistant, starting in the stand-alone version of utility training - and without thresholding automatic), and none of them fix.

    The example of OCR OR vi works very well with its own abc file. But if I use one of my friends there is a leak memory every time that it runs, typically a few hundred k bytes.

    Please is - anyone can help or tell what is happening? Or fix the abc file?

    Thank you very much.

    Technical support to the United Kingdom have concocted with a fix. If they give permission, I'll post it here.

    The problem can affect any file OCR training using the GUI tools in 2013 release.

  • Leak memory running 32-bit application in 64-bit Windows 7

    I have an application that shows no signs of leaks memory (I am put on hold the berries of 10 MB and their queue to the file) under a 32-bit operating system standard.  Since then I tried to run in Windows 7 64 bit (as a 32-bit by using the 32-bit Labview runtime process) and incrementing memory noticed.

    Program takes 300 MB of memory.  If I've save 100 MB of data in a file, windows 7 64 bit will show it as 400 MB of memory (under windows on windows 32-bit)?  I don't think it would be, but you never know...

    Are there bugs in Labview 2010 regarding the queues of waiting and 64-bit windows?  I am tracking my use of the queue and is not increasing, so no real reason so that he can rise in the allocation of memory.

    I started turning off sections of code to track down it and found it to be a function call that I had left behind (somehow).

    Apology for a sparse description.  I found the problem and it was a creation that is hidden in a table in a loop every second or more (for example, rising constant memory), nothing to do with 64-bit related issues.  Problem has been solved!  Thank you all.

  • Leak memory in imaqFindPattern

    I suspect a leak memory in imaqFindPattern()

    When I run this function in a loop of the amount of RAM used by the program gradually. When I disable two instructions in the loop, the amount of RAM used remains the same. The two lines that I switch are:

    PM = imaqFindPattern (input_image, ref_image, some_rect, & options, NULL, &n);)

    If (PM) imaqDispose (pm);

    I've added an 'other' to the 'if', but it is never executed.

    It also happens when I use the same image every time through the loop.

    I used NI Vision 8.6 and CV 8.01 on Windows XP.

    Please confirm or help. ;-)

    Good news! After you have installed the Vision NOR updated 8.6.1 the leak memory disappeared!

    So, if you have memory problems with imaqFindPattern, locate, install and download the 27 MB update NO.

  • Leak memory in Vista hold em?

    As unlikely as it seems, since I can't find anyone else who has the same problem, it seems that there is a memory leak when I run Vista Hold em.

    The only time I have problems is when I play the game. Using the Task Manager, when I play the game I can watch the memory use slowly increases during the period wherever I play. The number of process remains constant. Towards the end of the game the amount of memory used is almost double the amount used when the game started. If I continue to play, the game eventually freezes. If I shut it down by the 'End process' button, it affects the whole system and I end up having cold start System. As I say, I'm not having other problems with my system except when playing Holdem.

    I know this seems unlikely given that nobody else seems to be challenging, but it happens every time I play the game. Thanks for any ideas on how I might solve this problem. I like the game!

    EDIT: I forgot to include I'm using Windows Vista Ultimate (32 bit). 4 GB of RAM installed. Quad-core.

    Hello

    I don't know the exact reason for this problem, but I'll tell you what I found and will give a 'solution '. The problem is somehow related to Creative Sound Blaster. From what I've read on other forums on this problem, update the driver will NOT fix the problem. The problem is that the audiodg.exe will continue to consume more memory you are playing Hold em Vista. When you stop the game, this memory is not released. I don't know why it would be, however, the solution is to disable the Sound Blaster improvements. (I have read if you disable only reverb that suits it.)

    Here is the step by step solution. (Do this before you start playing Texas Hold em).

    1. go in Control Panel.

    2. double-click on the sounds applet.

    3 click speakers to select.

    4. click on the properties button.

    5 Select the Sound Blaster.

    6. click on the checkbox labeled "Disable Sound Blaster improvements.

    7. click on Ok.

    This should fix it. You can activate this return (uncheck the box above), when you are finished playing.

  • Leak memory in the routine of Winhttp 6.1 WinHttpSendRequest() on Windows 7

    I posted the following question in https://groups.google.com/forum/# microsoft.public.winhttp! Forum/Microsoft.public.WinHTTP with the subject 'leak memory in WinHttpSendRequest()'.

    I think that this function of WinHttpSendRequest() still leaks memory in Windows 7 (WinHttp 6.1), here is what I have:

    Platform: Windows 7 Enterprise (version 6.1 SP1) 64-bit platform.
    WinHttp: version 6.1.7601.17514.
    Visual Studio version: Microsoft Visual Studio Ultimate 2013, Version 12.0.31101.00 update 4.
    Memory tool leak detection: performance, using "private bytes".
    Symptom: With WinHttpSendRequest() call memory continue to increase even if it looks like a square, but the trend going upwards. Without calling WinHttpSendRequest, the trend is pretty much flat line, even if it looks like a square.

    Here's the code,
    ==============================

    Hello

    Thanks for posting your query on the Microsoft Community.

    I suggest you re-post your query on The MSDN Forums , because we have experts working on this type of questions and for you help the better.

    Check out the link:

    https://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Windows 7 seems to have unexplained memory use high after a scan of viruses of several hard drives.

    My computer:

    • 6 GB of installed memory, normal use is about 1.5 GB
    • 3 hard disks of the computer (OS [Raid 0]. 2 data readers)
    • Windows 7 64 bit

    Problem:

    • After analysis the entire computer, the use of memory up to 3.5 GB of jumps and stay until the computer is restarted.
    • Research in the Task Manager and resource monitor shows the memory used, but running programs don't add to what be close to 3.5 GB
    • I tested it with AVG and Avira antivirus, and it happens with both. Then he would lead me to believe it's a matter of Windows.

    Troubleshooting:

    • Tried it with several antivirus, same problem with ones I've tried.
    • Scanned just the OS partition without significant increase in memory usage.
    • Scanned two data discs. Memory usage has jumped about 1 GB during the analysis of the first hard drive and another 1 GB when on the second disc. Use of memory are remained high, once the completed scan. Subsequent analyses retains high memory usage.

    Question:

    • What is causing this behavior? Indexing, or is it some sort of memory leak?

    The answer can be found here.

    http://social.technet.Microsoft.com/forums/en-us/w7itproperf/thread/50e505cb-00C2-4c86-BF08-e9c926a4982a

  • RAM leak (excessive use)

    Hello

    I got my 500-281 0n Pavilion 29/04/14 (4 GB of RAM).  He starts using 1.40 GB of RAM, about 2.50 half an hour later. almost 4 GB 4 hours later.  It is the only race of IE.  I ran CCleaner, Adware, SuperAntiSpyware, Microsoft Security Essentials, cleaning Windows and Windows Defender in offline mode - all clean.  I reduced msconfig/startup to 2 elements.  I installed a former print shop and an older MS Works Suite, but they do not run.  I also installed my (HP w2207) screen, it works fine, but cannot install Windows 7 drivers.  What can I try?  Thank you.

    Hello

    Open RUN and type: MSCONFIG

    Now, go to the Services TAB and check hide all Microsoft Services. Now, uncheck all other boxes for other services.  Save the changes and now reboot and monitor.  If the leak memory goes away, then you have one Windows service that is causing the problem.   If you cannot determine what services non-windows is the origin of the problem, then you can activate certain services, save and restart and monitor.  You can also check the memory usage in the Task Manager and see if you can determine which service non-Windows is the origin of the problem.

    There's a chance if not Windows services are not the problem then you may have a defective hardware driver and then you would need to start reviewing your updates to the driver.  I would like to start will update the video drivers.  In really bad situations and to save time, you may need to recharge the system using the external HP recovery media.

  • leak memory in time real PDM

    Hi, this is Lee.

    I had the very serious problem.

    I'm currently building the real-time data recorder.

    But I found that there is a leak memory while I wrote the TDMS files.

    Let me explain further.

    Please watch for my project, I downloaded.

    There are target real time program. The title is "untitiled.vi".

    As you can see, I think that there is no accumulation of memory components...

    But if I don't have VI as 12 hours... it consume slightly patteren.

    Run Loganalizer.vi. or you can visit memory.jpg.

    I don't know why, but after he loses 17kBytes memory.

    Well... 17 KB of memory is not a big problem at the moment, but I intend to run this recorder as 2 months.

    This will eventually crash by memory loss.

    Thanks in advance.

    Hi Lee,.

    What do you mean by leaks memory, have you seen the increasment of memory when you run the VI without shutting it down? Or did you have seen memory leaks after you run the VI for 12 hours and STOP the race?

    If after a stop running, you see always 17 KB of memory "leak", what about you close the VI? Since it is possible that VI himself attributes may use of memory when running.

Maybe you are looking for

  • updated to OSX 10.9.8 and cannot open iPhoto

    I upgraded OSX 10.7.5 to 10.9.8 and cannot open iPhoto more. I don't have the new photos.

  • A satellite - Catalyst 10.1 for mobile GPUS

    When you go to available Catalyst 10.1 for ATi Mobility cards?

  • Satellite A100-803 - Vista recovery problem

    Hello I upgraded the RAM and HDD on a Satellite A100-803 and when I restore Windows Vista from the recovery disk process is going very well, but after restarting windows says that "Windows Setup could not set up Windows on this s material. I think th

  • are there images F55?

    Hello! I need your help... Where can I find F55 film? I have just seen on vimeo that you will find the search for the "Sony F55" point. The problem is all these video make run away from me this camera, especially these "day and night tests. Does anyo

  • Is it possible to compare two PDFs using labview?

    I was wondering if it was possible to use LabVIEW to compare two PDF files (that contain images as well as text) to another. I know that Bluebeam PDF viewer can do, so I was hoping there was a way to do it with LabVIEW.