home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sftick.zip / SFTIC.DOC < prev   
Text File  |  1994-05-05  |  7KB  |  133 lines

  1. OS/2 Programming Pitfalls for Beginners
  2. Kathleen Panov
  3. San Francisco Technical Interchange
  4. INSTRUCTIONS 
  5.  
  6. There are nine sample applications contained in the folders on the desktop.  Each folder contains a 
  7. file "COMPILE.CMD" that will compile the program and redirect the compiler output to the text file 
  8. "OUT".  There is also a file, "RUN.CMD" that will execute the sample application.  Each program 
  9. demonstrates a common OS/2 programming error.  You will be given 8 minutes per program to find 
  10. the problems. Two hints will be displayed at 2 minute intervals.  The last hint will contain the 
  11. solution.  If you get too frustrated, there is a "GOOD" folder that contains the solution.  Look for the 
  12. "BINGO" icon and search in the file for the keyword "BINGO".
  13.  
  14.  
  15. MEM
  16. Memory and the Trap of Doom
  17. You have a program that needs to allocate some memory and then write to it.  However, you seem 
  18. to be running into a trap!  Your job is to find the problem, and correct it so you may safely write to 
  19. the allocated memory.
  20.  
  21. WIN2
  22. The Dormant Dormer
  23. This program's only function is to create and window and have it display on the desktop.  The 
  24. window seems to have a mind of its own, and will not appear.  You must discover why the window is 
  25. not appearing and modify the program so the window will appear.
  26.  
  27. DIALOG
  28. The Case of the Missing Frame
  29. Select "Load Dialog..." from the DIALOG menu.  A dialog will appear but... where's the frame?  
  30. Your mission if you choose to accept it is to find the reason the frame is missing, and fix the 
  31. program so the frame is visible.
  32.  
  33. WIN3
  34. The Run-Away Window Procedure
  35. This program's only function is to create a window and have it display on the desktop (Gee, this 
  36. sounds familiar, doesn't it ).  Unfortunately, the window seems to have some kind of error.  Your job 
  37. is to find out what is causing the error, and make the window reappear!
  38.  
  39. FILE
  40. The Mysterious Unopened File
  41. The file program's only function is to open a file "FILE.BAK" and close a file.  However, it seems to 
  42. be temperamental and will not work.  You must find the reason the file will be open and modify the 
  43. program so the file open and close are successful.
  44.  
  45. WIN4
  46. In Search of Broken Windows
  47. This program's only function is to create a window and have it display on the desktop (I know, I 
  48. know, but this one is different, I promise). The program runs, but immediately exits.  Inquiring 
  49. minds want to know why.  Your task is to find the reason, and create a successful program.
  50.  
  51. SLIDER
  52. The Disappearing Tick-Mark Text
  53. This program should display a slider control and have tick-marks that are labeled with percentages.  
  54. However, for some reason the text is invisible.  Your mission is to find the problem and put the 
  55. missing text in its proper place.
  56.  
  57. PROG
  58. The Search for the Long Lost Listing
  59. This program is designed to execute the OS/2 command processor (CMD.EXE) and have it print out 
  60. a directory listing.  However, it doesn't print out a listing like it is supposed to.  Your task is to fix 
  61. this program so a command process is started and the directory listing is displayed.
  62.  
  63.  
  64.  
  65. WINFONT
  66. The Tell-tell Typeface
  67. This program has text that should appear on the window in 18 point Times Roman (This is 
  68. written in 18 pt Times Roman).  There is a small problem, and the font change does 
  69. not appear to have taken effect. You must make the text appear in 18 point Times Roman.
  70.  
  71.  
  72. OS/2 Programming Pitfalls for Advanced Programmers
  73. Kathleen Panov
  74. San Francisco Technical Interchange
  75. INSTRUCTIONS 
  76.  
  77. There are seven sample applications contained in the folders on the desktop.  Each folder contains a 
  78. file "COMPILE.CMD" that will compile the program and redirect the compiler output to the text file 
  79. "OUT".  There is also a file, "RUN.CMD" that will execute the sample application.  Each program 
  80. demonstrates a common OS/2 programming error.  You will be given 10 minutes per program to 
  81. find the problems. Two hints will be displayed at 2 minute intervals.  The last hint will contain the 
  82. solution.  If you get too frustrated, there is a "GOOD" folder that contains the solution.  Look for the 
  83. "BINGO" icon and search in the file for the keyword "BINGO".
  84.  
  85.  
  86. TITLEBAR
  87. The Trouble with the Title bar Text
  88. This is a very small program that simply brings up a window and changes some of the colors on the 
  89. title bar.  There is one small problem, the title bar text seems to have vanished.  Your mission is to 
  90. return the text to its proper place.
  91.  
  92. GUARD
  93. The Mysterious Excepting Exception
  94. This program is a guard page exception handler that will generate a guard page exception, trap the 
  95. exception in the exception handler, commit the trapping page of memory, and set the next page as 
  96. the new guard page.  Everything seems to work fine until the program ends, then a stack exception 
  97. appears.  What is the problem?  Your task is to discover why the exception appears and get rid of it.
  98.  
  99. FONTDLG
  100. The Disappearing Dialog Display
  101. This program has a "Change Font..." selection that will bring up on of the OS/2 Common Dialogs, 
  102. the Font Dialog.  The dialog seems to display OK, but some of the elements are missing.  Your 
  103. mission is to find the reason the dialog display disappears and fix it so all will be shown...
  104.  
  105. MEM
  106. The Invisible Shrinking Memory Pool
  107. On the surface, this program has no problems; but, it does have a problem that would show up if 
  108. this program was a lot bigger.  There are two programs - SHARED and SHAREE.  SHARED 
  109. allocates some shared memory and then spawns the program SHAREE, which will get the shared 
  110. memory and write it to the screen.  Trouble is just around the corner...  Your task is to find the 
  111. problem, correct it, and make the world safe for ignorant users everywhere.
  112.  
  113. CONTAIN
  114. The Case of the Cantankerous Container
  115. This program should bring up a container with several records, each sorted in alphabetical order.  
  116. However, you seem to be running into a trap!  Your job is to find and correct the problem so the 
  117. container will come up, and the records are sorted in alphabetical order.
  118.  
  119. POPUP
  120. The Lurking Leak of Doom
  121. This is a very small program that will display a popup menu when the user clicks the right mouse 
  122. button (context menu button) on the icon.  There is also a THESEUS2 display that shows changes 
  123. in the amount of memory allocated and committed.  Some memory seems to be missing.  You must 
  124. find the leak and stop it, before it's too late!
  125.  
  126. OBJECT
  127. The Slider that Would Not Die
  128. This program is a two-threaded program that brings up a progress indicator (slider) of a 
  129. background file copy process.  Everything seems OK until the program is closed, and it never seems 
  130. to go away.  You must find the secret weapon that will kill the slider, and fix the program so the 
  131. slider process is well and truly dead.
  132.  
  133.