[comp.os.msdos.programmer] Calling Socket library from Interrupt handler

mam@flash.formtek (Mark A. Mastandrea) (12/13/90)

I am working on a program in MicroSoft C 6.0 that replaces an interrupt
handler and then spawns a program which calls the interrupt. The interrupt
handler makes calls to a SUN NFS socket library .

Problem: The call to the socket library (inside the interrupt handler) 
hangs the machine. I can see the
network indicator flickering ( which indicates the machine trying to access
the network). I can also make calls to the socket library before the spawn
which works just fine. Has anyone out there  had any problems making network
calls from an interrupt handler or run into problems like this when
spawning programs.

Thanks
Mark      

mark@premenos.premenos.COM (Mark Grand) (12/15/90)

In article <1409@formtek.UUCP> mam@flash.formtek (Mark A. Mastandrea) writes:

   I am working on a program in MicroSoft C 6.0 that replaces an interrupt
   handler and then spawns a program which calls the interrupt. The interrupt
   handler makes calls to a SUN NFS socket library .

   Problem: The call to the socket library (inside the interrupt handler) 
   hangs the machine. I can see the

Set a breakpoint on the interrupt handler.  Check the value of SS.
You may find that the problem is that your interrupt handler is
executing in one of DOS' stacks rather than your stack.  If this is
the case, the call to the NFS library may cause DOS' stack to
overflow.  If this is your problem, then the solution is to switch to
your application's stack on entry to your interrupt handler and the
restore the previous stack before exiting from the interrupt handler.
--
========

Mark Grand
Premenos Corporation                415-602-2073
1000 Burnett Avenue, Suite 200
Concord, CA   94520                 ...!attmail!premenos
				    ...!{sun, ames, att}!pacbell!premenos!mark
-- 
========

Mark Grand
Premenos Corporation                415-602-2073