Path: utzoo!attcan!uunet!cs.utexas.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!gryphon!amy!hansel From: hansel%amy@usc.edu (Steve Hansel) Newsgroups: comp.sys.amiga.tech Subject: problems writing a handler Message-ID: <678@amy.uucp> Date: 2 Sep 89 21:36:06 GMT Sender: news@amy.uucp Lines: 51 I am trying to learn how to write a handler. Currently I am trying to compile the NULL: handler that was posted to comp.sources.amiga a few months (years?) ago. Since this program was originally compiled with Manx and I am using Lattice 5.02, I had to change some of the #include statements. When I try to send output to my: (my version of null:) I meet the Guru instantly. These are the commands that I am using to compile the code: lc -cu -b0 -v -M myhandle misc blink with myhandle.lnk copy myhandle l:my-handler ===================== begin myhandle.lnk ================ FROM "myhandle.o"+"misc.o" TO "myhandle" LIB LIB:lcnb.lib LIB:amiga.lib BATCH ===================== end myhandle.lnk ================== Here is the mountlist entry that I am using: my: Handler = L:my-handler Stacksize = 500 Priority = 5 GlobVec = 1 # The entry point of the handler is called _main. Am I using the correct compiler options, libraries, etc? Does anyone have any advise on handlers or how to debug them? Thanks in advance. Steve Hansel usc.edu!amy!hansel gryphon.com!amy!hansel