To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 4415
4414  |  4416
Subject: 
Multitasking problems
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sat, 26 Sep 1998 15:07:25 GMT
Original-From: 
Adam Oliver <oli@wantree.com.auAVOIDSPAM>
Viewed: 
1416 times
  
HELP!!

I keep getting this message whenever I try to multitask with my board:

"Not enough stack memory for new process while executing main (process # 1)"

The only things loaded are the hb libs, my code and the sony ir routines
totally nowhere near the total amount of memory. The code I'm using is:

"
int d;

void main()
{
sony_init(1);
while(!stop_button())
{
  start_process(IRCheck());
}
sony_init(0);
}


void IRCheck()
{
while(1){
d = ir_data(0);}
}
"

I've also tried copying the example from the IC manual and had exactly the
same problem. Any ideas anyone?

Thanks
Adam



Message has 1 Reply:
  Re: Multitasking problems
 
(...) <snip> (...) I think I know what the problem is: Putting a start_process statement inside a loop like that is going to end up starting so many processes that the stack fills up almost instantly. I think you probably only need a single IRCheck (...) (26 years ago, 26-Sep-98, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR