home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vnet.ibm.com
- From: ameline@vnet.ibm.com (Ian Ameline)
- Message-ID: <19930106.162527.477@almaden.ibm.com>
- Date: Wed, 6 Jan 93 19:23:17 EST
- Subject: CSET/2 Problem: Using a DLL for multiple applications con
- Newsgroups: comp.os.os2.programmer
- References: <1ifq26INN77@eagle.natinst.com>
- Organization: C-Set/2 Development, IBM Canada Lab.
- Disclaimer: This posting represents the poster's views, not those of IBM
- Lines: 20
-
- In article <1ifq26INN77@eagle.natinst.com>,
- ramdas@natinst.com (Malathi Ramdas) writes:
- >
- > I have compiled a language interface as a DLL using the 32-bit CSET/2
- >compiler. I link this DLL with a sample application. As long as I have only
- >one copy of this application running things work fine. But if try to run
- >another application (or the same application) that accesses the same DLL
- >while the other one is still active,
- >the second application gives a General Protection Fault Error. (
- >'Exception Occurred in C Library Routine called from EIP=----'). I am using
- >the INITINSTANCE and TERMINSTANCE options in my DEF file. I am linking
- >the C Library routines statically. If anyone has encountered similar problems
- >and know the solution to it or has suggestions I would like to hear from
- >you.
-
- Make sure that you have DATA MULTIPLE NONSHARED in the DEF file too.
- This is mandatory if your DLL links statically to the runtime.
-
- Regards,
- Ian Ameline.
-