🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3314

CSET/2 Problem: Using a DLL for multiple applications con

#3314
From: Ian Ameline
Date: Thu, 07 Jan 1993 00:23
20 lines
1428 bytes
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.
Technical Details
Message-ID: <19930106.162527.477@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
References: <1ifq26INN77@eagle.natinst.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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