home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7127 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.8 KB

  1. Xref: sparky comp.os.os2.programmer:7127 comp.os.os2.apps:9488 comp.os.os2.misc:39883
  2. Newsgroups: comp.os.os2.programmer,comp.os.os2.apps,comp.os.os2.misc
  3. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!news.ans.net!cmcl2!panix!os2man
  4. From: os2man@panix.com (Larry Salomon Jr.)
  5. Subject: Re: DLL question
  6. Message-ID: <1992Dec18.140136.1455@panix.com>
  7. Date: Fri, 18 Dec 1992 14:01:36 GMT
  8. References: <lj1ktuINNftf@exodus.Eng.Sun.COM>
  9. Organization: PANIX Public Access Unix, NYC
  10. Keywords: DLL library
  11. Lines: 34
  12.  
  13. In <lj1ktuINNftf@exodus.Eng.Sun.COM> deepakd@ural.Eng.Sun.COM (Deepak Dhamdhere) writes:
  14.  
  15. >I am posting this question for a friend, hope that the DLL experts can
  16. >help him out.
  17.  
  18. >Deepak Dhamdhere
  19.  
  20. >************
  21. >I have an application that calls functions from ABC.DLL,
  22. >those functions call routines from XYZ.DLL and those, in turn,
  23. >call routines from the C library. This application starts a child process
  24. >using DosExecPgm, which in turn, does the same thing. I have used 
  25. >llibcdll.lib to link all these programs and libraries. 
  26.  
  27. >Very frequently, it generates a segementation violation. When I checked
  28. >with Codeview, I found that the malloc() call fails because it tries to
  29. >load a non-existent segment into DS.
  30.  
  31. >Any clues to why is this happening ? I would like to know the correct
  32. >way of compiling and linking ABC.DLL, XYZ.DLL and the applications.
  33.  
  34. >Your immediate help will be appreciated very much.
  35. >************
  36.  
  37. This really belongs in comp.os.os2.programmer, but...
  38.  
  39. Insure that he is building the DLLs by linking with LLIBCDLL and that the
  40. functions he is calling are defined as EXPENTRY.
  41.  
  42. Lar
  43. -- 
  44. "If you choose not to decide, you  | "My other body is in the shop" - seen
  45.  still have made a choice" - Rush  |  on a T-shirt
  46. ------------------------------------------------------------------------
  47.