Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Play animation (help to delete)

Author
Message
Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 5th May 2010 07:28
hi, i want to delete an animation from the memory, when i mouse click delete the animation 1 and load new animation but the memory up and up

my code





Thanks

Hello
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 5th May 2010 20:33
DirectShow keeps the animation in memory until your program has ended, then frees it from memory.

Annoying I know, it took me hours to figure that one out. Try switching your animations to a different format. (If they're small enough in size turn them into animated gif images)

I figured this out in my game engine which extracts all files from a rar archive into a temp folder, loads it all in, then deletes the folder when changing levels. However, you can't delete the avi files until the program has ended. That's why I switched formats. You could also try the DarkVideo plugin.

My signature is NOT a moderator plaything! Stop changing it!
Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 6th May 2010 04:33
i try delete the files and directory, i used wmv, avi and mpg and cant delete, wich format you used in your game?


thanks

Hello
Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 6th May 2010 05:55
i try with the trial of dark video with this code and i got the same result, the ram up up up



Hello
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th May 2010 22:01
Try the 7.5 beta release - I made some changes there to get rid of some memory leaks. I don't believe it's perfect yet, but it's definitely a lot better than 7.4.

Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 7th May 2010 02:21
where i can download that?

Hello
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 7th May 2010 20:26
@Super Sabueso: I used animated GIF files.

My signature is NOT a moderator plaything! Stop changing it!
Super Sabueso
16
Years of Service
User Offline
Joined: 10th Apr 2010
Location:
Posted: 10th May 2010 04:52
thanks ianm and mobiius, i try the beta version and it works better (not perfect), i cant use gif because i used 10 minutes videos

Hello

Login to post a reply

Server time is: 2026-07-26 04:27:38
Your offset time is: 2026-07-26 04:27:38