User Tag List

Results 1 to 7 of 7

Thread: File size problem with regular file object??

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    File size problem with regular file object??

    Hey while attempting a workaround on another problem - I came across a problem with the regular file object...it reports the wrong file size in bytes for files bigger than 1.5GB...Am I the only one getting this problem or is there a file size limit in the file object extension?

    More importantly is there a workaround?

    I'm trying to read the size of directories, however having issues with large directories

    (I've tried using the INT64 object as a workaround with no success)

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    My guess is that the number is too big and wraps around the end of the range. To understand what I mean, suppose you have a range from 1 to 10. If you say 4, it stays 4. If you say 0, which is outside the range, it'll wrap around to 10. If you say 11, again outside the range, it'll wrap around again to 1. Saying 15 goes to 5.

    So, you were right to attempt to use the Int64 object, since it can handle bigger ranges, but the problem i that the file obejct can't. So, before it even gets to a place where it can be a larger number, it has already wrapped around to a smaller one.

    I don't think this can be easily fixed because of how extensions handle numbers, but if the file object could return the size as a string then that would help.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Aug 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    Thanks for that - it makes sense..
    Perhaps there is a workaround..If what you say is true, then If I can find the maximum file size that can be passed into the object, I can use the following equation in the Int64 object to find the actual filesize:
    (Bigger filesizes give me a negative value)
    if filesize is a negative value -> true filesize = maxfilesize + (maxfilesize + returned value)
    i.e: if range is -100 to + 100, then a value of 125 should give me a return of -75
    so: 100+(100+(-75)) = 125

    Does that make sense?
    Does anyone know what the maximum integer value for the file object is?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    It's probably either 16777216 or 4294967296, it'll take some testing.
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Aug 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    I think I got it -> The max file range is -2^31 to 2^31
    that's 2147483648...

  6. #6
    No Products Registered

    Join Date
    Aug 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    It Works! - Thanks for the help LB.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: File size problem with regular file object??

    Quote Originally Posted by TrojanWolf
    I think I got it -> The max file range is -2^31 to 2^31
    that's 2147483648...
    0 to 2^31 would be 2147483648
    -(2^31) to 2^31 is 4294967296, as LB stated.

Similar Threads

  1. Problem with File Object :(
    By TheDigitalAlchemist in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd October 2012, 06:50 PM
  2. Problem opening a HTML file with a flash file
    By liliaks in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 15th January 2012, 10:26 AM
  3. Vista & File Object Problem
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd February 2009, 11:29 PM
  4. problem with path using file object
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st October 2007, 03:17 AM
  5. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •