This content has been marked as final. Show 13 replies
thanx for your answer.
I've already tried that ExtractHandlers method, rewriting it so it would read lines instead of chars since the file is 2 Gig! But the funny thing is that it creates a text cast member that is verry large and makes director crash... haha.. And it also takes like 2 hours just to read 1/3 the file. But now I have rewritten it so it will put the script to a file instead. So maybe I'll have some of the code within 4-5 hours.
If there is some other solution out there, pleaze let me know since I need to finish the work today!
Out of interest, what is in your director file that is causing it to be 2 gig? I think it's going to be extremely difficult to find your code among 2 gig of data.
I gave up trying to extract the code with that method. It should be totaly rewritten.
However, for anyone who might find this of interest, I solved it this way:
Download PFE32.EXE, set your swap file so your system can handle large files if you need so. Open the file, then just search for "on new me" or whatever you need to find, and there it is...
This might be of help to someone and also to answer your question.
The reason for the file beeing so big is that I was importing images to the castlib. And after that I debugged and edited what needed, I sometime saved the file, without deleting the importet members. The thing is that even if I deleted the members, AFTER that I saved the file, and then saved it again, whithout the imported members, it didn't reduce the file size. So after some mistakenly saved sessions, the file size gained 2 gig, even though the file only contained some script members.
'Save' is kind of like a 'quick save' function. To do a full save and clear out all unused information in your file, you should use the 'save and compact' feature in the file menu. Either that, or save incrementally named versions of your file (to keep backups of older vesions). eg, "mymovie01.dir" "mymovie02.dir", etc. Each time you save and compact, or save under a new filename, your movie should reduce down to its proper size.
"Save and compact", hehe, how could I miss that?!?! ... maybe because it was like 5 years ago since I did some serious stuff in Director. Thanx for pointing that out!
By the way... Director ruled 5 years ago, and still do!
To speed save time director appends changes to the previous file, rather
than rewriting the entire file, to purge deleted member one uses the
save and compact command. Using save as to a new file name also causes a
fresh optimised file to be written.
I have extracted lingo source code from a corut .dir file by opening it
with a text editor.
I think we already sorted this out.
But maybe you could answer me why director file sizes gets so big when importing jpegs during runtime. It also seems like director preloads all images into ram memory. Then I don't mean the compressed file size, but the decompressed. So when importing like 40 jpeg images ram size gets over 1.5 gig!!! Do you know how I could overcome this?
JPEG's are compressed on disk only - they have to be uncompressed to be
displayed.... They are also uncompressed as a cast member - where they are
just plain bitmaps and not jpegs any longer.
Adobe Community Expert
On Tue, 24 Oct 2006 00:48:25 GMT, 4lx posted in macromedia.director.lingo:
> So when importing like 40 jpeg images ram size gets
> over 1.5 gig!!! Do you know how I could overcome this?
The work-around is to import fewer at a time and save between imports. This
works whether doing regular imports (File->Import / CTRL+R) or using the
Lingo importFileInto() method.
During the save, Director frees up a bunch of the RAM used during the import.
Mark A. Boyd
Hi, I tried it but it didn't work. Can I use the save in a repeat? Or do I have to go out of the repeat to save?
I have posted a new topic about this: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=187&threadid=1207827 where you can see some of my code.
On Thu, 26 Oct 2006 23:18:35 GMT, 4lx posted in macromedia.director.lingo:
> Hi, I tried it but it didn't work. Can I use the save in a repeat? Or do
> I have to go out of the repeat to save?
Within the repeat loop.
> I have posted a new topic about this:
> readid= 1207827 where you can see some of my code.
Logged in and replied in that thread.
Mark A. Boyd