To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2215
2214  |  2216
Subject: 
Re: threads - bug in the firmware?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 16 Jan 2002 21:32:42 GMT
Viewed: 
1596 times
  
the code hanging up. I can see nowhere where there can be a fault. I am a
long way from being an
expert, but is it possible there is a bug in the firmware? Would someone

As pointed by Albert Huang, you cannot call kill() with an "invalid" pid.
Actually, the comment above kill() in tm.c says:

//! kill a process
/*! \param pid must be valid process ID, or undefined behaviour will result!

The function updates data structures that are no longer allocated. In the
case of your program I don't if it corrupts the memory, but that's definitely
something you should check. ;)

Eric

--
email: eric.swalens@easynet.be
web: http://student.ulb.ac.be/~eswalens
icq: 2686881



Message is in Reply To:
  Re: threads - bug in the firmware?
 
Hi again I have now totally stripped down my code to a minimum and I am still having problems with the code hanging up. I can see nowhere where there can be a fault. I am a long way from being an expert, but is it possible there is a bug in the (...) (22 years ago, 16-Jan-02, to lugnet.robotics.rcx.legos)

18 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