home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / misc / 44133 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  2.1 KB

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!fauern!uni-erlangen.de!cip.informatik.uni-erlangen.de!hmkirchh
  2. From: hmkirchh@cip.informatik.uni-erlangen.de (Hans-Joachim Kirchhoff)
  3. Newsgroups: comp.os.os2.misc
  4. Subject: Re: Borland C++ 3.1 and OS/2 2.0
  5. Message-ID: <1k3ugeEINN5lq@uni-erlangen.de>
  6. Date: 26 Jan 93 18:05:02 GMT
  7. References: <1993Jan21.022418.23244@csaadel.adl.csa.oz.au>
  8. Organization: CSD., University of Erlangen
  9. Lines: 36
  10. NNTP-Posting-Host: faui00a.informatik.uni-erlangen.de
  11.  
  12. statters@csaadel.adl.csa.oz.au (Steve Tattersall) writes:
  13.  
  14. >If the dynamic link option is chosen for the Borland run-time,
  15. >OWL and class libraries, the programme fails to terminate
  16. >properly.
  17.  
  18. >A GA fault is reported in the run-time DLL and then many errors
  19. >dialogs appear with random characters in them.
  20.  
  21. >All code has been built using windows 3.0 resources and headers.
  22. Steve,
  23. yes I know this one. Here is, what the Borland guy on CIS told me:
  24. OWL.DLL does some cleaning up in its WindowExitProcedure WEP. There it
  25. deletes an instance of the TMODULE class. This happenes in the
  26. MODULE.CPP source file (near the end of the file). However, when
  27. Win3.0 calles the WEP of a DLL, the stack it allows is so small, the
  28. WEP MUST NOT USE API calls (sounds ridiculous, does it not). Win3.1
  29. has corrected the problem, so the new OWL31 tries to be nice and
  30. cleans up the memory it needed. But if you want to use the OWL.DLL under
  31. Win3.0, you'll have to remove the "delete Module;" line, since the delete
  32. call tries to use some API function.
  33. After you rebuilt the OWL31.DLL, everything should work ok.
  34.  
  35. >Linking the code with static libraries, the code fails to start under
  36. >WIN-OS2 (the not supported / not recognised error).
  37. Concerning this, there is a switch under Options (I think) Resource, which
  38. distiguishes btw 3.0 and 3.1 Applications. Also you probably should
  39. define WIN30 rather than WIN31;STRICT, when using the OWL.
  40.  
  41. Have fun.
  42.  
  43. -Hajo
  44. ---
  45. --------------------------------------------------------------------------
  46. Hans-Jochen Kirchhoff | hmkirchh@cip.informatik.uni-erlangen.de
  47. > No signature today  | CompuServe 100024,712
  48.