home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / pascal / 4906 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.5 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!swrinde!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!ira.uka.de!uka!uka!news
  2. From: S_JUFFA@iravcl.ira.uka.de (|S| Norbert Juffa)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Help with wierd TP 6.0 IDE problem, please!
  5. Message-ID: <16ttm1INNdgb@iraul1.ira.uka.de>
  6. Date: 19 Aug 92 16:42:41 GMT
  7. Organization: University of Karlsruhe (FRG) - Informatik Rechnerabt.
  8. Lines: 33
  9. NNTP-Posting-Host: irav1.ira.uka.de
  10. X-News-Reader: VMS NEWS 1.23
  11.  
  12. Hi netters!
  13.  
  14. I am turning to the net for advice on a really wierd problem I am encountering.
  15. As you may know (or not), I am the author of a fast replacement for the 
  16. Turbo Pascal 6.0 run-time library (available as TPL60N15.ZIP from
  17. garbo.uwasa.fi for everybody who is interested). I use my library all the
  18. time and haven't had any serious problems with it. Programs compiled with
  19. it run just fine from DOS. However, I have now discovered that running a
  20. program compiled with my library within the TP 6.0 IDE completely hangs
  21. the system. The wierd thing though is that this happens only if no 386
  22. memory manager is installed. To make myself clear: If I start up a bare
  23. bones DOS system (just DOS, not additional device drivers and TSRs), start
  24. TURBO PASCAL 6.0 by typing TURBO and load some Pascal program into the IDE
  25. and then have it run, the machine will hang upon termination of the Pascal
  26. program. The program itself doesn't matter and the machine hangs regardless  
  27. wether the program terminates normally or due to a run-time error. As soon
  28. as I add a memory manager (EMM386, QEMM) to my bare bones DOS system, 
  29. everything works just fine. The memory managers do not report any kind of
  30. protection violation. Now I am wondering how running the IDE in virtual
  31. mode lets programs linked with my library run and how running it in real
  32. mode lets the same programs crash. Note that the programs always crash
  33. upon termination. If they terminate due to a run-time error, the error
  34. message is printed out before the system hangs (only a HW reset brings it
  35. back to live). As I have the source code to the main procedure I can 
  36. see that the error message is printed directly before the program returns
  37. via a call to INT 21h, function 4C00h. Does anybody know how programs are
  38. executed by the IDE? I have tried to run the IDE in a debugger but haven't
  39. had much luck yet. Any help is appreciated. Thanks in advance!
  40.  
  41.  
  42. Norbert
  43. -------------------------------------------------------------------------------
  44. Norbert Juffa         email: S_JUFFA@IRAVCL.IRA.UKA.DE       Live and let live!
  45.