wilson@mimsy.umd.edu (Anne Wilson) (01/10/91)
--text follows this line-- How is the environment for interrupt handlers different than that of regular functions, under Unix? I understand that the system, rather than the compiler, calls the fuction, but what implications does this have? I'm asking this question because of the following problem. I am writing in C++, using g++ on a VAX. I have written an interrupt handler, called recv_Message, which is also member of a class, Message. The problem is that when the handler is called, it does not have the correct value for the other data members of the class. The only method I have found for giving it the correct value is to copy the value to a global variable before the handler is called, and then the handler references the global variable. This is not very satisfying!! and gets messy for muliple instances of Message objects. Why does the handler not have the current value of the other data members? Is using global variables the only way to give it the proper information? Any help or insight would be appreciated! Anne Wilson wilson@mimsy.cs.umd.edu