CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012

    Multiple Runtime RAMDISKs on Windows

    This is my first post on CodeGuru, so please forgive me my lack of knowledge.

    I'm writing an application which assists with recording of video sequences. (simplifying - taking picture every X ms).
    The main problem is Harddrive speed. I need to create RAMDISK for every single camera connected to the PC.
    1. Run the application, create and initialize ramdisk (user defined size, drive letter?)
    2. Application loop. (saving pictures to ramdisk)
    3. Cleanup and delete ramdisk.

    Is it possible to create RAMDISKs (multiple - for purpose of multiple application instances) during application runtime? How to do that in C++ ?
    Did anyone wrote similar application? I mean dynamical RAMDISK during application runtime?

    The application uses MFC - I know about CMemFile, but I don't want to use it, neither third party software.

    I only need fast and public data directory.
    Is writing a driver the only solution? Is it really that hard? Could someone direct me ?

    - Dawid S.

  2. #2
    Join Date
    Oct 2006

    Re: Multiple Runtime RAMDISKs on Windows

    I have no experience in this but if you google for 'free ramdisk windows' you get quite a lot of alternatives. Why not check what they support?
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.