Loading files into memory

G

GrantSTaylor

Hello all,

I'll start by saying that I am relatively new to Visual Basic, so I
apologize in advance if this is a stupid question, but I haven't found
any information on this anywhere else on the web.

I'm writing a program that will play several different videos clips,
but there is a noticeable delay when I have the program wait until the
videos are needed to load them. I'm trying to figure out how to load
all of the video files into the system memory when the application
first starts up, so there is no delay later (or at least minimize the
delay). Can anybody make a recommendation on the best way to do this?
Also, how can I determine how much information I can load into memory
without overloading the system?

I'm using Visual Studio 2005 Professional Edition, and the Windows
Media Player COM component to play avi videos.

Thanks,
Grant
 
G

Guest

(e-mail address removed) wrote in @o61g2000hsh.googlegroups.com:
Can anybody make a recommendation on the best way to do this?
Also, how can I determine how much information I can load into memory
without overloading the system?

You can stream data from disk (filestream) into a memorystream. THen you
can playback the file from a memorystream.
 
G

GrantSTaylor

(e-mail address removed) wrote in @o61g2000hsh.googlegroups.com:


You can stream data from disk (filestream) into a memorystream. THen you
can playback the file from a memorystream.

Cool, that worked perfectly, thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top