Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] I need more than 1.4 Gb memory

[solved] I need more than 1.4 Gb memory

Scheduled Pinned Locked Moved General and Desktop
memory
10 Posts 5 Posters 5.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Franckynos
    wrote on 7 Apr 2015, 10:24 last edited by Franckynos 4 Aug 2015, 09:34
    #1

    Hi erverybody,

    I need to used more than 1.4Go of memory for my application.
    Who can I do this?

    If used more than 1.4Gb, my application crash.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      mchinand
      wrote on 7 Apr 2015, 14:47 last edited by
      #2

      What hardware and operating system are you using?

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franckynos
        wrote on 7 Apr 2015, 15:09 last edited by Franckynos 4 Jul 2015, 15:28
        #3

        I use Qt 5.2 with mingw 4.8 32 bit under windows 8.1

        And I have 64 Gb of memory

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 7 Apr 2015, 15:38 last edited by
          #4

          It's an OS limitation. Windows exposes only 2GB of addressable memory space to 32 bit processes. Adding to that a minimum allocation size, fragmentation and alignment requirements you're hitting the upper deck.

          You could compile your app with /LARGEADDRESSAWARE. That would up the addressable space to 4GB (3.something in practice) on 64 bit system and to 3GB (2.something in practice) on a 32 bit Windows with /3GB switch.

          In practice I would recommend to optimize your app. Either make it use less memory or switch to 64bit. It's 2015. It's time ;)

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Franckynos
            wrote on 7 Apr 2015, 16:06 last edited by
            #5

            @Chris-Kawa said:

            It's an OS limitation. Windows exposes only 2GB of addressable memory space to 32 bit processes. Adding to that a minimum allocation size, fragmentation and alignment requirements you're hitting the upper deck.

            You could compile your app with /LARGEADDRESSAWARE. That would up the addressable space to 4GB (3.something in practice) on 64 bit system and to 3GB (2.something in practice) on a 32 bit Windows with /3GB switch.

            In practice I would recommend to optimize your app. Either make it use less memory or switch to 64bit. It's 2015. It's time ;)

            Thx,

            I try to pass my app in 64 bits but I have some dll of harware only avilable in 32 bits.
            And I don't know how compile in 64 bit with Qt. It's complicatied I found. And everything I trired doesn't work.
            I ask this because my app can import/export datas and in this data, I have big pixmap (10800*800), I can have several pixamp in exportation.
            If I export more than 40 pixmap, I have more than 1,4 Gb in memory and my apps crash.
            I don't know how to prevent this.

            Thx for your reply.

            G S 2 Replies Last reply 7 Apr 2015, 16:59
            0
            • F Franckynos
              7 Apr 2015, 16:06

              @Chris-Kawa said:

              It's an OS limitation. Windows exposes only 2GB of addressable memory space to 32 bit processes. Adding to that a minimum allocation size, fragmentation and alignment requirements you're hitting the upper deck.

              You could compile your app with /LARGEADDRESSAWARE. That would up the addressable space to 4GB (3.something in practice) on 64 bit system and to 3GB (2.something in practice) on a 32 bit Windows with /3GB switch.

              In practice I would recommend to optimize your app. Either make it use less memory or switch to 64bit. It's 2015. It's time ;)

              Thx,

              I try to pass my app in 64 bits but I have some dll of harware only avilable in 32 bits.
              And I don't know how compile in 64 bit with Qt. It's complicatied I found. And everything I trired doesn't work.
              I ask this because my app can import/export datas and in this data, I have big pixmap (10800*800), I can have several pixamp in exportation.
              If I export more than 40 pixmap, I have more than 1,4 Gb in memory and my apps crash.
              I don't know how to prevent this.

              Thx for your reply.

              G Offline
              G Offline
              Goddard
              wrote on 7 Apr 2015, 16:59 last edited by
              #6

              @Franckynos It is a lot of extra work, but you can access 32bit dlls from a 64bit program with some extra work arounds.

              F 1 Reply Last reply 8 Apr 2015, 06:44
              0
              • F Franckynos
                7 Apr 2015, 16:06

                @Chris-Kawa said:

                It's an OS limitation. Windows exposes only 2GB of addressable memory space to 32 bit processes. Adding to that a minimum allocation size, fragmentation and alignment requirements you're hitting the upper deck.

                You could compile your app with /LARGEADDRESSAWARE. That would up the addressable space to 4GB (3.something in practice) on 64 bit system and to 3GB (2.something in practice) on a 32 bit Windows with /3GB switch.

                In practice I would recommend to optimize your app. Either make it use less memory or switch to 64bit. It's 2015. It's time ;)

                Thx,

                I try to pass my app in 64 bits but I have some dll of harware only avilable in 32 bits.
                And I don't know how compile in 64 bit with Qt. It's complicatied I found. And everything I trired doesn't work.
                I ask this because my app can import/export datas and in this data, I have big pixmap (10800*800), I can have several pixamp in exportation.
                If I export more than 40 pixmap, I have more than 1,4 Gb in memory and my apps crash.
                I don't know how to prevent this.

                Thx for your reply.

                S Offline
                S Offline
                sirop
                wrote on 7 Apr 2015, 17:07 last edited by
                #7

                @Franckynos
                Check this for precompiled 64 bit Qt:
                http://tver-soft.org/qt64

                To be, or not to be: that is the question:
                Whether ’tis nobler in the mind to suffer
                The slings and arrows of outrageous fortune,
                Or to take arms against a sea of troubles,
                And by opposing end them?

                F 1 Reply Last reply 8 Apr 2015, 06:40
                0
                • S sirop
                  7 Apr 2015, 17:07

                  @Franckynos
                  Check this for precompiled 64 bit Qt:
                  http://tver-soft.org/qt64

                  F Offline
                  F Offline
                  Franckynos
                  wrote on 8 Apr 2015, 06:40 last edited by
                  #8

                  @sirop OHHHHH !! Thank you very much !!! I haven't found this before !!!! :D

                  1 Reply Last reply
                  0
                  • G Goddard
                    7 Apr 2015, 16:59

                    @Franckynos It is a lot of extra work, but you can access 32bit dlls from a 64bit program with some extra work arounds.

                    F Offline
                    F Offline
                    Franckynos
                    wrote on 8 Apr 2015, 06:44 last edited by
                    #9

                    @Goddard I'll try access to my lib 32 bits after install Qt 64 bit. I'll let you know.

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      Franckynos
                      wrote on 8 Apr 2015, 08:17 last edited by
                      #10

                      Hi,
                      I think it's on way...
                      My compilation has passed !!!
                      I have juste some error with linking library, I have compiled in 64bits my personnal library. That remove some errors, but I have one that can't be recompile, (supplier lib) who can I include it ?
                      You have an idea @Goddard ?

                      Thx your reply.

                      1 Reply Last reply
                      0

                      9/10

                      8 Apr 2015, 06:44

                      • Login

                      • Login or register to search.
                      9 out of 10
                      • First post
                        9/10
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved