From: "Timo Bingmann" Newsgroups: comp.os.msdos.djgpp Subject: DJGPP TSR and C++'s new command Date: Tue, 12 May 1998 16:10:52 +0200 Organization: LF.net GmbH, Internet Services, Stuttgart, Germany Lines: 15 Message-ID: <6j9l7i$1vb$1@news.LF.net> NNTP-Posting-Host: p2-18.stuttgart.netsurf.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have written a TSR in DJGPP C++ which functions as network interface. The TSR itself answers an IPX callback routine and has an API interrupt. One of purposes of this program is to interpret the terrible IPX packets - Yup I did it - and stuff them into an receive queue waiting for a client program to request it over the API. The storage queue is the main problem. Since I am writing the TSR in C++ I would like to let a class dynamically take care of the memory needed for the saved packets. This means to create a -new- packet in memory in the IPX callback routine and to -delete- the packet in the API interrupt again. Is it possible to malloc and free or new and delete memory in interrupts and callbacks in a TSR???