Multiple Runtime RAMDISKs on Windows
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Multiple Runtime RAMDISKs on Windows

  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Multiple Runtime RAMDISKs on Windows

    Hello,
    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 ?

    Regards,
    - Dawid S.

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,642

    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
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

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

This is a CodeGuru survey question.


Featured


HTML5 Development Center