![]() |
![]() |
#12 | |
Feb 2014
22×3×7 Posts |
![]() Quote:
Also, I was mistaken when I said it selects a resource id randomly. It assigns them incrementally. So it appears that eventually I run out of resource ids. I guess I need to figure out how to reset the resource id allocation back to "#1". I do like your suggestion on the gmp_cmp! Good catch! |
|
![]() |
![]() |
![]() |
#13 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
3×17×131 Posts |
![]()
So is any of the following wrong?
|
![]() |
![]() |
![]() |
#14 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
150318 Posts |
![]()
Hmm, a bad assumption on my part because it could also be a problem in GMP producing an invalid resource number when it reaches 2^31. Anyhow, whatever the reason for it the second solution would solve it: restart GMP after 2giga-calls to reset the numbering back to zero.
|
![]() |
![]() |
![]() |
#15 |
Romulan Interpreter
"name field"
Jun 2011
Thailand
2·32·571 Posts |
![]()
For the OP: (original poster)
I have the perfect link that will solve your problem. (I am with chalsall here, he might be rude, but he is right - you are very fast in pointing bugs in tools people use for ages, and you have no idea what you are talking about, I am not talking about 'collecting all primes' stuff - I let RDS to deal with it ![]() Last fiddled with by LaurV on 2014-02-14 at 07:34 |
![]() |
![]() |
![]() |
#16 | |
Feb 2014
22×3×7 Posts |
![]() Quote:
My apologies to all. I thought this was a forum to ask for help with, what I think, is an interesting issue. I find it odd how GMP resource allocation is doing what it is in this particular program as it doesn't behave this way in other programs and thought you all might find it of interest too. (Or find an obvious issue with my code.) So, with that, I wish to thank those who tried to help. I really have tried to figure out what is the problem with what should be a rather easy program and some of you have at least tried to assist productively. For others, well, I'm sorry my quest for a solution has rubbed you the wrong way so terribly. Good bye. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rho code | Happy5214 | YAFU | 3 | 2015-11-01 21:54 |
Code Help | Andrew | Programming | 12 | 2013-02-16 20:53 |
New Code | JohnFullspeed | Programming | 20 | 2011-09-04 04:28 |
Code | Primeinator | Software | 20 | 2009-06-11 22:22 |
A little help with VBS code | IronBits | No Prime Left Behind | 6 | 2008-11-12 14:23 |