cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/29/11:11:13

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Callback problem
Date: 29 Aug 1997 08:42:12 GMT
Organization: The National Capital FreeNet
Lines: 22
Message-ID: <5u6214$9er@freenet-news.carleton.ca>
References: <3405E6D9 DOT 98D AT ece DOT uci DOT edu>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ying Qin (yqin AT ece DOT uci DOT edu) writes:
> /* called by the packet driver if a packet was received */
> void PacketReceive()
> {
>         if (call_back_reg.x.ax == 1)
> 	{ /* Seconde Call */
>                 total++;
>                 printf("Total: %d\n", total);
> 	}
>       ...

You aren't calling this printf in a function called in an interrupt
handler by any chance? Calling libc functions with side effects in an
interrupt is a big no-no as I recall. Trash memory, crash your program, etc.


--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019