From: | Colin Wenzel |
Date: | 6 Sep 2001 at 16:31:19 |
Subject: | [amiga-c] Re: Help needed with random crashing problem |
On 07-Sep-01, Paul Qureshi wrote:
> Hi Andrew.
>> Not sure if this counts or is releated to your problem, but
>> shouldn't you be freeing your signals on exit? A Shell program
>> shares its process with the DOS process. If you run that program
>> several times in the same Shell window, you'll use up all the
>> available signals for that Shell process.
> Interesting point. I'll look into it further, because I was under the
> impression that signals need not be freed at all. Maybe you are
> right.
NAME
AllocSignal -- allocate a signal bit
SYNOPSIS
signalNum = AllocSignal(signalNum)
D0 D0
BYTE AllocSignal(BYTE);
FUNCTION
Allocate a signal bit from the current tasks' pool. Either a
particular bit, or the next free bit may be allocated. The signal
associated with the bit will be properly initialized (cleared). At
least 16 user signals are available per task. *Signals should be*
* deallocated before the task exits.*
If the signal is already in use (or no free signals are available)
a -1 is returned.
Allocated signals are only valid for use with the task that
allocated them.
WARNING
Signals may not be allocated or freed from exception handling code.
INPUTS
signalNum - the desired signal number {of 0..31} or -1 for no
preference.
RESULTS
signalNum - the signal bit number allocated {0..31}. If no signals
are available, this function returns -1.
SEE ALSO
* FreeSignal()*
Regards
Colin Wenzel. 157 Brisbane Road,
Mooloolaba, Queensland, Australia. 4557.
PHONE: (07) 5444 5445
EMAIL: colstv@yahoo.com.au
EMAIL2: colinwenzel@yahoo.com
URL: http://www.hotkey.net.au/~colstv/
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.9, Spectrum Gfx Card + P96.
Need an Image Generator For CATV ??
http://connect.to/products
________________________________________
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/