home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7368 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.4 KB

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