Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded".
Routine crash afther 665 self calls, MEMORY_STACKKID show 675. SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Peter hi,
I know it has been a very long since, but maybe you still remember.
I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded".
Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Try the following in your program's Start method:
SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )
Do the above solve your problem?
Jamal
On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
Peter hi,
I know it has been a very long since, but maybe you still remember.
I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded".
Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Hi Jamal,throws error "bad function call").
Unfortunately this does not help. When error occurs the following resources are reported:
MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids) MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case) The level of recursion is 663 (again practically the same number as in Peter Gargos case).
The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (compiler
It seems that I need a function like something SetMaxKidStackSize() :-)
Or is there maybe some registry setting available?
Gorazd
On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
Try the following in your program's Start method:
SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )
Do the above solve your problem?
Jamal
On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
Peter hi,
I know it has been a very long since, but maybe you still remember.
I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote: >>>> Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded".
Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Can post the code that replicates the issue or you can head to https://xsharp.eu and post your question to the forum where you may getcompiler throws error "bad function call").
an answer from Robert.
On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
Hi Jamal,
Unfortunately this does not help. When error occurs the following resources are reported:
MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids) MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
The level of recursion is 663 (again practically the same number as in Peter Gargos case).
The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (
It seems that I need a function like something SetMaxKidStackSize() :-)
Or is there maybe some registry setting available?
Gorazd
On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
Try the following in your program's Start method:
SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )
Do the above solve your problem?
Jamal
On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
Peter hi,
I know it has been a very long since, but maybe you still remember.
I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded". >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Hi Jamal,compiler throws error "bad function call").
thanks for your help. I guess I will first try with the basic recursion function and then slowly adding more functionalties. This way I hope I will be able to find what the problem is.
On Friday, July 7, 2023 at 9:18:50 PM UTC+2, Jamal wrote:
Can post the code that replicates the issue or you can head to https://xsharp.eu and post your question to the forum where you may get
an answer from Robert.
On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
Hi Jamal,
Unfortunately this does not help. When error occurs the following resources are reported:
MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
The level of recursion is 663 (again practically the same number as in Peter Gargos case).
The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (
It seems that I need a function like something SetMaxKidStackSize() :-) Or is there maybe some registry setting available?
Gorazd
On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
Try the following in your program's Start method:
SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )
Do the above solve your problem?
Jamal
On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
Peter hi,
I know it has been a very long since, but maybe you still remember. >>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded". >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
Dne sobota 8. července 2023 v 20:33:55 UTC+2 uživatel Gorazd Petrovič napsal:compiler throws error "bad function call").
Hi Jamal,
thanks for your help. I guess I will first try with the basic recursion function and then slowly adding more functionalties. This way I hope I will be able to find what the problem is.
On Friday, July 7, 2023 at 9:18:50 PM UTC+2, Jamal wrote:
Can post the code that replicates the issue or you can head to https://xsharp.eu and post your question to the forum where you may get an answer from Robert.
On 7/7/2023 4:02 AM, Gorazd Petrovič wrote:
Hi Jamal,
Unfortunately this does not help. When error occurs the following resources are reported:
MEMORY_REGISTERAXIT = 67 (out of max 100000 set by SetMaxRegisteredAxitMethods)
MEMORY_REGISTEREDKID = 165 (out of max 100000 set by SetMaxRegisteredKids)
MEMORY_STACK_FREE = 742044, MEMORY_STACK_SIZE 921600
MEMORY_STACKKID = 676 (practically the same number as in Peter Gargos case)
The level of recursion is 663 (again practically the same number as in Peter Gargos case).
The error says "Kid Stack Size limit exceeded". This reads as a limit in Kid Stack Size which is obviously 676, but I do not know where to rise that limit. In help there is a function SetKidStackSpace() which could be used, but does not work (
It seems that I need a function like something SetMaxKidStackSize() :-)
Or is there maybe some registry setting available?
Gorazd
Hi Boys afther 16 years,On Friday, July 7, 2023 at 7:06:08 AM UTC+2, Jamal wrote:
Try the following in your program's Start method:
SetMaxRegisteredKids( 100000 ) // default 16000
SetMaxRegisteredAxitMethods( 100000 )
Do the above solve your problem?
Jamal
On 7/6/2023 4:27 AM, Gorazd Petrovič wrote:
Peter hi,
I know it has been a very long since, but maybe you still remember. >>> I have the same Kidstack limit problem: while I am calling function recursively, it throws error at practically the same number of calls 663 and with almost the same MEMORY_STACKKID value 674.
Do you maybe rememer how you solved your problem?
Best regards, Gorazd
On Wednesday, October 10, 2007 at 11:20:35 AM UTC+2, Peter Gargos wrote:
Hi all,
I have my own quick sort routine with recursive calls.
Sorting 1000 or higher items cause "Kid stack size limit exceeded". >>>> Routine crash afther 665 self calls, MEMORY_STACKKID show 675.
SetKidStackSize has no any effect. I you set StackSize to 16MB
( default is 8kB ),
before crash KidStackFree func report 16769116 bytes free !!.
Where is problem ? ( VO28+SP1 )
Thanks,
Peter Gargos
Softcomp Technology
I forgot QuickSort Routine and replace with Selection Sort. Slightly slower, but in my case ( several thousand items )
there is no problem.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (3 / 13) |
Uptime: | 48:24:19 |
Calls: | 6,685 |
Calls today: | 3 |
Files: | 12,225 |
Messages: | 5,344,307 |
Posted today: | 1 |