From: Erik Berglund Newsgroups: comp.os.msdos.djgpp Subject: Re: GPF with system() and clock int. Lines: 32 Message-ID: Date: Sun, 23 Jul 2000 15:04:48 GMT NNTP-Posting-Host: 194.237.158.160 X-Complaints-To: abuse AT telia DOT com X-Trace: newsb.telia.net 964364688 194.237.158.160 (Sun, 23 Jul 2000 17:04:48 CEST) NNTP-Posting-Date: Sun, 23 Jul 2000 17:04:48 CEST Organization: Telia Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com manni DOT heumann AT gmx DOT de (Manni Heumann) wrote: > Hi Eric, > I am not sure if this is related to the crashes you experience. But > aren't you supposed to outportb (0x43, 0x36) before changing the > timer's frequency? > > I.e. before you do that: > outportb(0x40,0x00); /* Setting 16x clock tick frequency */ > outportb(0x40,0x10); /* ...will trigger the error easily */ > > or that: > outportb(0x40,0x00); /* Reset clock tick frequency */ > outportb(0x40,0x00); > > -- > > Manni > > Life would be much easier if I had the source code. > Hi Manni I guess you are right, but it worked without it, probably because some other program already had written 0x36. -- Erik Berglund erik2 DOT berglund AT telia DOT com