By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,627 Members | 1,870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,627 IT Pros & Developers. It's quick & easy.

Loading files into memory

P: n/a
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

Jul 23 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gr**********@gmail.com wrote in news:1185215487.298079.30950
@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.
Jul 23 '07 #2

P: n/a
On Jul 23, 4:22 pm, Spam Catcher <spamhoney...@rogers.comwrote:
GrantSTay...@gmail.com wrote in news:1185215487.298079.30950
@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.
Cool, that worked perfectly, thanks!

Jul 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.