Jump to content

Jud

Members
  • Content Count

    153
  • Joined

  • Last visited

Posts posted by Jud


  1. What is the largest amount of static memory you can get in Windows?  I know about the 2GB limit on static structures (even on 64-bit platform!)  The most static memory I can get is about 1,994,000,000 bytes - then I start getting access violations.  Is there a way to get larger static arrays or is there a way to get several static arrays under 2GB each, with the total static memory over 2GB?


  2. 4 hours ago, BruceTTTT said:

    My experience exactly as well.

     

    Can't figure out a pattern either, gets annoying at times. I seem to have the problem more with 10.4.2 than 10.4.1 (but 10.4.2 fixed a lot of other problems).

    Yes.  I don't know why or when it happens.  I don't think I ever had the problem with 10.3, which is why I still also have 10.3 on my desktop.  When the 10.4.x IDE isn't working, I have to go back to 10.3.  Of the 10.4 versions, if I recall correctly, 10.4.1 BEFORE the patches worked well.


  3. Follow-up.

     

    When I put a recursive Fibonacci function in the parallel.for and ran it on various inputs, it worked.  When I called a recursive procedure to do Depth First Search (DFS) on a graph, it would not work if it was doing more than one in parallel. 

     

    But then I made a small procedure to start the recursive calls to the DFS procedure and put that small procedure inside the parallel.for instead of the actual call to the DFS procedure, it works!

     

    Just in case someone asks about this.


  4. It is nothing like Fibonacci.  It is a depth-first search on a graph.  I'm not trying to make the recursion itself recursive - each time through the loop makes an independent call to the recursive procedure.  The instances of the procedure don't have anything to do with each other and there is no global data.  That is, I need to make parallel calls to the procedure; the recursion itself is not parallel.

     


  5. I've written several multi-threaded programs with the parallel library, usually using tasks but one or two using parallel for.  I have a new one that is more natural for parallel for.  The problem is that this is the first one that must use recursion.  Inside the loop there is some initial stuff and then it calls a procedure that calls itself, and that isn't working.

     

    If the parallel loop only has one iteration, e.g. parallel.for(1,1 ... ) or parallel.for(2,2 ... ), it works.  But for actual work, with the recursion and parallel.for, it locks up.

    How can I get a recursive procedure to work in a multi-threaded program?

     


  6. No solution.  If I remember correctly, 10.3 didn't have the problem.  10.4 had the problem but then 10.4.1 fixed the problem.  But then there were two patches to 10.4.1 that still had the problem.  I got 10.4.2 about 3 days ago, and Find Declaration has been working for me.  But Refactor/Rename doesn't work (and is worse).  Before Refactor/Rename would change the one where you have the cursor, but no others.  Now it doesn't even change the one at the cursor.


  7. 5 minutes ago, emailx45 said:

    here, I have a file created with your code with 1GBytes of size!

    I tryed open in Notepad++ / Wordpad and the app stay for many times and when I clicked it the app crash!

    this files very big for open all in one time!

     

    maybe using another software i can open, but I dont have software for this in my pc!

    EditPad Pro can open files bigger than 4GB. 

×