Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2005
    Posts
    4

    Is SetupData.CalculateRequiredSpace() 32 bit? - sizes beyond 4 GB are overflowing

    Hi,

    I noticed that when compiling source data beyond 4 GB (this is no bumptious "I'm-making-noise-about-a-bug-no-matter-that-it-will-never-appear-in-real-life"; we really have source data that big), the return value of SetupData.CalculateRequiredSpace() is the correct size in bytes MODULO 0xFFFFFFFF, IOW multiples of 0xFFFFFFFF = (2^32)-1 = (4 GB)-1 are subtracted. It seems that somwhere in the calculation process there is a 32 bit variable involved which is overflowing.
    Does anyone know a way to detect how often the overflow happened to fix the return value, or any other workaround (or maybe just a download link to an update which fixes SetupData.CalculateRequiredSpace() )?

    Thx for any info...

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Tom,

    You are correct with your findings. I have logged this to be looked into for the next release of the software. It appears to reset after 4GB so you may be able to fudge this by adding the difference to the resulted variable?

    Adam Kapilik

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Hi Adam,

    you're right,

    _SpaceRequired = SetupData.CalculateRequiredSpace();
    _SpaceRequired = _SpaceRequired + 4294967295;

    does indeed work and the value is processed correctly from then on. Thanks for the quick help and if there'd be a fix (to make allowance for generality) in the new version I'd be delighted.

    Tom

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Tom,

    We will look into this for the next service release of the software.

    Adam Kapilik

  5. #5
    Join Date
    Jul 2005
    Posts
    4
    I noticed this is fixed for version 7.0.4.0 - thanks a lot

  6. #6
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Great to hear that your issue has been solved.

    Adam Kapilik

Similar Threads

  1. different page sizes?
    By biloy01 in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 02-09-2005, 06:01 AM
  2. Template and Video window sizes
    By allenz in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 01-01-2005, 01:14 PM
  3. Anyone got a bit of spare time?
    By longedge in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 11-20-2004, 10:40 AM
  4. I have a bit of an unusual question...
    By element78 in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 09-02-2003, 10:18 AM
  5. Action screen be able to do larger window sizes
    By Marker0077 in forum Setup Factory 6.0
    Replies: 3
    Last Post: 08-07-2003, 03:19 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