home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsstand.cit.cornell.edu!vax5.cit.cornell.edu!tcd
- From: tcd@vax5.cit.cornell.edu
- Newsgroups: comp.sys.mac.programmer
- Subject: Moire cdev crash
- Message-ID: <1992Aug28.144345.14662@vax5.cit.cornell.edu>
- Date: 28 Aug 92 14:43:45 EDT
- Distribution: comp
- Organization: Cornell University
- Lines: 24
-
- I'm working on a program that sends live video over the net in
- UDP packets. I spent the last few days trying to figure out why my
- receive/display code would always crash after about 3 minutes, and
- finally figured out that it was the "Moire" cdev code that was
- generating a bus error. Personally, I don't care much for screen
- savers, but it happened to be installed on the machine I was using as
- a test receiver. Since it doesn't appear to cause problems for other
- applications run on that machine, I'm wondering what I can do to make
- my code more robust. I'm not particularly interested in figuring out
- how the cdev works (or doesn't work), but if there are any general
- techniques I can use to protect myself.
- Currently, I'm using asynchronous UDP reads with a simple
- io completion routine. If I could do it with synchronous reads, would
- I be safer? Also, it occurs to me that the Moire thinks nothing
- is happening because the "events" are coming in through the back of
- the machine rather than the front. Would it make sense for my code
- to post some kind of event on a periodic basis, just to let everybody
- know that it's doing something? Any other suggestions?
- The particular "Moire" installed on my colleague's machine is
- version 3.22. If that's simply bad code, then maybe I don't have
- anything to worry about with my code.
-
- Tim Dorcey
- Cornell Information Technologies
-