Article View: comp.os.os2.programmer
Article #3066Building DLL with C run-time functions
From: Craig Knelsen
Date: Sat, 21 Nov 1992 05:00
Date: Sat, 21 Nov 1992 05:00
33 lines
2050 bytes
2050 bytes
I am attempting to build a DLL with C run-time functions from the standard and migration C Set/2 multi-threaded libraries. I have .DEF files for building both the .LIB and .DLL files that reference the required run-time functions for startup and those run-time functions that my apps reference. My .DEF file for the building the DLL includes the following: library mylib initinstance terminstance data multiple nonshared readwrite loadoncall code loadoncall exports ... I can build the DLL and link my two application programs with the LIB for my DLL without any problems. I start my first program and it comes up fine. If I do a PSTAT, it shows my DLL being used by the program. While my first app is running, I try to start my second app. I get the system error dump dialog complaining about a protection violation in my dll. Not only this but if I attempt to stop my first app., it either: 1. hangs itself 2. closes its window but still does not terminate 3. hangs the system In any case, I am forced to reboot. I have read chapter 15 of the C Set/2 User's guide on including C run-time functions in an application DLL as well as looking at sample03 in the compiler samples directory. Has anyone been able to accomplish what I am attempting to do? After a couple of days of reboots, its getting to be quite frustrating... -- Craig Knelsen craig@phenix.cc.uregina.ca Craig_Knelsen@f20.n140.z1.fidonet.org
Technical Details
Message-ID:
<1992Nov21.050024.1244520@sue.cc.uregina.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!sue!phenix.cc.uregina.ca!craigShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!sue!phenix.cc.uregina.ca!craig From: craig@phenix.cc.uregina.ca (Craig Knelsen) Subject: Building DLL with C run-time functions Message-ID: <1992Nov21.050024.1244520@sue.cc.uregina.ca> Sender: news@sue.cc.uregina.ca Date: Sat, 21 Nov 1992 05:00:24 GMT Reply-To: craig@phenix.cc.uregina.ca (Craig Knelsen) Organization: Does it matter? Keywords: multi-threaded DLL run-time Lines: 33