Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. 32 bit IDE, 64 bit OS..,

32 bit IDE, 64 bit OS..,

Scheduled Pinned Locked Moved The Lounge
visual-studioperformancequestion
30 Posts 15 Posters 0 Views 1 Watching
  • 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.
  • L Lost User

    16 bit length limit of String! :mad: No exception, the PC just went off to La La Land. 50K length strings fine. I was planning to manage data differently (limited strings and flushing into a memory stream) but there was another part of the library I'm working on before I started that task so there is half a day gone wondering how I managed to hit the SelfDestructTM button.

    Join the cool kids - Come fold with us[^]

    M Offline
    M Offline
    Mladen Jankovic
    wrote on last edited by
    #2

    Trollslayer wrote:

    16 bit length limit of String!

    You're doing it wrong!

    [Genetic Algorithm Library] [Wowd]

    L 1 Reply Last reply
    0
    • M Mladen Jankovic

      Trollslayer wrote:

      16 bit length limit of String!

      You're doing it wrong!

      [Genetic Algorithm Library] [Wowd]

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #3

      VS2005 - there are a number of classes that have 64K limits.

      Join the cool kids - Come fold with us[^]

      M 1 Reply Last reply
      0
      • L Lost User

        VS2005 - there are a number of classes that have 64K limits.

        Join the cool kids - Come fold with us[^]

        M Offline
        M Offline
        Mladen Jankovic
        wrote on last edited by
        #4

        No, you got it wrong: if you're hitting limits - you're doing it wrong. I have no doubts that the limits you specified are there and true.

        [Genetic Algorithm Library] [Wowd]

        L 1 Reply Last reply
        0
        • L Lost User

          16 bit length limit of String! :mad: No exception, the PC just went off to La La Land. 50K length strings fine. I was planning to manage data differently (limited strings and flushing into a memory stream) but there was another part of the library I'm working on before I started that task so there is half a day gone wondering how I managed to hit the SelfDestructTM button.

          Join the cool kids - Come fold with us[^]

          M Offline
          M Offline
          M dHatter
          wrote on last edited by
          #5

          lol :rolleyes:

          "I do not know with what weapons World War 3 will be fought, but World War 4 will be fought with sticks and stones." Einstein "Few things are harder to put up with than the annoyance of a good example." Mark Twain

          1 Reply Last reply
          0
          • L Lost User

            16 bit length limit of String! :mad: No exception, the PC just went off to La La Land. 50K length strings fine. I was planning to manage data differently (limited strings and flushing into a memory stream) but there was another part of the library I'm working on before I started that task so there is half a day gone wondering how I managed to hit the SelfDestructTM button.

            Join the cool kids - Come fold with us[^]

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #6

            Do you mean System.String? If so, it's not an IDE restriction.

            Regards, Nish


            Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

            V A L 3 Replies Last reply
            0
            • L Lost User

              16 bit length limit of String! :mad: No exception, the PC just went off to La La Land. 50K length strings fine. I was planning to manage data differently (limited strings and flushing into a memory stream) but there was another part of the library I'm working on before I started that task so there is half a day gone wondering how I managed to hit the SelfDestructTM button.

              Join the cool kids - Come fold with us[^]

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #7

              That's not an IDE limitation. A string is limited by a continguous chunk of available memory, not some arbitrary 16-bit number. I'd start looking to see if there is a big enough hole in the large object heap. The LOH doesn't get rearranged like the smaller heap does, so any holes created in memory will stay that way on the LOH.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              L 1 Reply Last reply
              0
              • N Nish Nishant

                Do you mean System.String? If so, it's not an IDE restriction.

                Regards, Nish


                Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                V Offline
                V Offline
                Vikram A Punathambekar
                wrote on last edited by
                #8

                She's blaming neither the IDE nor the OS, just ranting about the 16-bit limitation.

                Cheers, विक्रम (Got my troika of CCCs!) "cant stand heat myself. As soon as its near 90`F I seriously start to loose interest in doing much." - fat_boy. "Finally we agree, a little warming will be good if it makes you shut the f*** up about it." - Tim Craig.

                1 Reply Last reply
                0
                • N Nish Nishant

                  Do you mean System.String? If so, it's not an IDE restriction.

                  Regards, Nish


                  Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                  A Offline
                  A Offline
                  Abhinav S
                  wrote on last edited by
                  #9

                  Nishant Sivakumar wrote:

                  an IDE restriction

                  Whatever you blame (IDE, OS), they come from one creator. :-D

                  The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files

                  R 1 Reply Last reply
                  0
                  • A Abhinav S

                    Nishant Sivakumar wrote:

                    an IDE restriction

                    Whatever you blame (IDE, OS), they come from one creator. :-D

                    The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files

                    R Offline
                    R Offline
                    riced
                    wrote on last edited by
                    #10

                    Abhinav S wrote:

                    one creator.

                    God?

                    Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.

                    P A 2 Replies Last reply
                    0
                    • R riced

                      Abhinav S wrote:

                      one creator.

                      God?

                      Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.

                      P Offline
                      P Offline
                      peterchen
                      wrote on last edited by
                      #11

                      Tarkeesh Pradmanesh.

                      Agh! Reality! My Archnemesis![^]
                      | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                      H 1 Reply Last reply
                      0
                      • L Lost User

                        16 bit length limit of String! :mad: No exception, the PC just went off to La La Land. 50K length strings fine. I was planning to manage data differently (limited strings and flushing into a memory stream) but there was another part of the library I'm working on before I started that task so there is half a day gone wondering how I managed to hit the SelfDestructTM button.

                        Join the cool kids - Come fold with us[^]

                        P Offline
                        P Offline
                        peterchen
                        wrote on last edited by
                        #12

                        String literals maybe, System.String certainly not. (I've had longer *nudge* *nudge*)

                        Agh! Reality! My Archnemesis![^]
                        | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                        V L 2 Replies Last reply
                        0
                        • P peterchen

                          String literals maybe, System.String certainly not. (I've had longer *nudge* *nudge*)

                          Agh! Reality! My Archnemesis![^]
                          | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                          V Offline
                          V Offline
                          Vikram A Punathambekar
                          wrote on last edited by
                          #13

                          Down, boy!

                          Cheers, विक्रम (Got my troika of CCCs!) "cant stand heat myself. As soon as its near 90`F I seriously start to loose interest in doing much." - fat_boy. "Finally we agree, a little warming will be good if it makes you shut the f*** up about it." - Tim Craig.

                          P 1 Reply Last reply
                          0
                          • V Vikram A Punathambekar

                            Down, boy!

                            Cheers, विक्रम (Got my troika of CCCs!) "cant stand heat myself. As soon as its near 90`F I seriously start to loose interest in doing much." - fat_boy. "Finally we agree, a little warming will be good if it makes you shut the f*** up about it." - Tim Craig.

                            P Offline
                            P Offline
                            peterchen
                            wrote on last edited by
                            #14

                            Ah so you enjoy it a bit more rough *wink* *wink* *nudge* *nudge*

                            Agh! Reality! My Archnemesis![^]
                            | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                            1 Reply Last reply
                            0
                            • R riced

                              Abhinav S wrote:

                              one creator.

                              God?

                              Regards David R --------------------------------------------------------------- "Every program eventually becomes rococo, and then rubble." - Alan Perlis The only valid measurement of code quality: WTFs/minute.

                              A Offline
                              A Offline
                              Abhinav S
                              wrote on last edited by
                              #15

                              riced wrote:

                              God?

                              Microsoft.

                              The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files

                              L 1 Reply Last reply
                              0
                              • M Mladen Jankovic

                                No, you got it wrong: if you're hitting limits - you're doing it wrong. I have no doubts that the limits you specified are there and true.

                                [Genetic Algorithm Library] [Wowd]

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #16

                                In .NET 2.0 the Treeview is limited to 64K nodes per root, this is not longer the case in .NET 3.0 but I have legacy issues to deal with. BTW in the OP I was planning to change things anyway, it was just one last item I wanted to test before doing so... Concactenating strings in the multi-Megabyte range isn't very efficient but the overhead of writing to a disk file will slow down the application too much hence looking at MemoryStream.

                                Join the cool kids - Come fold with us[^]

                                modified on Monday, July 19, 2010 4:11 AM

                                1 Reply Last reply
                                0
                                • N Nish Nishant

                                  Do you mean System.String? If so, it's not an IDE restriction.

                                  Regards, Nish


                                  Blog: blog.voidnish.com Most recent article: An MVVM friendly approach to adding system menu entries in a WPF application

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #17

                                  I know but that would have spoiled the rant. ;P

                                  Join the cool kids - Come fold with us[^]

                                  1 Reply Last reply
                                  0
                                  • A Abhinav S

                                    riced wrote:

                                    God?

                                    Microsoft.

                                    The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick - Silverlight *.XCP files

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #18

                                    Not one constructor?

                                    Join the cool kids - Come fold with us[^]

                                    T 1 Reply Last reply
                                    0
                                    • P peterchen

                                      String literals maybe, System.String certainly not. (I've had longer *nudge* *nudge*)

                                      Agh! Reality! My Archnemesis![^]
                                      | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #19

                                      I split a broadcast stream down into smaller chunks to speed up testing and 50K output was fine, tried a number of other and coincidentally larger streams which made things blow up and finally the original that I had split up and the same thing happened. Having found out about the 64K child limit on Treeview I am highly suspicous. :suss: This is .NET 2.0 BTW, I think a numbre of 16 bit length vlaues were changed to 32 bit in .NET 3.0

                                      Join the cool kids - Come fold with us[^]

                                      modified on Monday, July 19, 2010 4:23 AM

                                      1 Reply Last reply
                                      0
                                      • D Dave Kreskowiak

                                        That's not an IDE limitation. A string is limited by a continguous chunk of available memory, not some arbitrary 16-bit number. I'd start looking to see if there is a big enough hole in the large object heap. The LOH doesn't get rearranged like the smaller heap does, so any holes created in memory will stay that way on the LOH.

                                        A guide to posting questions on CodeProject[^]
                                        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                                             2006, 2007, 2008
                                        But no longer in 2009...

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #20

                                        .NET 2.0 has a number of components with 16 bit limitations, all I have to do is try and perusade work to support VS2008.

                                        Join the cool kids - Come fold with us[^]

                                        B 1 Reply Last reply
                                        0
                                        • P peterchen

                                          Tarkeesh Pradmanesh.

                                          Agh! Reality! My Archnemesis![^]
                                          | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.

                                          H Offline
                                          H Offline
                                          hairy_hats
                                          wrote on last edited by
                                          #21

                                          Even Google doesn't help with that. Any clues?

                                          P 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups