C# I/O Read Bytes Query

Posted on 2006-05-10
Last Modified: 2012-05-05
Hi All,

I am developing a c# console Application that is talking to a piece of hardware through event handlers. After the application had been running from a certain period of time we received a message from windows stating that it was having to increase the virtual memory of the system. Looking at the processes in task manager it was found that the I/O Read Bytes for our Application was continually rising at a fast rate. The memory useage is staying constant so their doesn't appear to be a memory leak.

Does anybody have any ideas, do I need to handle my own garbage collection?

Thanks in advance.
Question by:CoreSupport
    LVL 21

    Assisted Solution

    which events is the application processing?

    Is it processing alot of events that are being ignored?

    Put some logging statements in the code to see what the application is doing when VM increases.
    LVL 7

    Accepted Solution

    You can try loosening up the loop and throwing a GC.Collect() in there, just to see what happens.

    Author Comment

    We're making an I\O read to the hardware via event handlers every 500ms, analysis of the memory and vm seems to indicate there is no memory. We have come to the conclusion that there was no problem.

    Thanks for the replies.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    Problem with C# 1 44
    ASP.NET C# delay answer writing to file 11 27
    C# - SOLID Question 6 35
    Handling arrays 14 28
    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now