home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7503 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!weinkam
  3. From: weinkam@fraser.sfu.ca (James Lawrence Weinkam)
  4. Subject: ACCESS VIOLATION in IBMDEV32.DLL
  5. Message-ID: <weinkam.726789764@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. Date: Mon, 11 Jan 1993 22:02:44 GMT
  9. Lines: 32
  10.  
  11. I wrote a program to display each character of the selected font in
  12. sequence.  The font is selected by means of the WinFontDlg procedure.
  13. Once the font is selected, I do a GpiCreateLogFont using the fAttrs 
  14. returned from WinFontDlg.  Then I do a GpiSetCharSet, GpiSetCharBox,
  15. GpiQueryFontMetrics, GpiQueryCharStringPos to set the current font set,
  16. size and to determine the height and width of the String to be displayed.
  17. All these functions work perfectly.  I then do a GpiCharString using the
  18. same string as was used in the GpiQueryCharStringPos.  
  19.  
  20. If the selected font is the Symbol Set font, and the size is greater 
  21. than 100 points I get an ACCESS VIOLATION AT LOCATION 1ADC791D in
  22. IBMDEV32.DLL 
  23.  
  24. If the selected font is the Symbol Set font with outline rather than fill
  25. then the program works perfectly reguardless of size.  It also works
  26. for all the other fonts.
  27.  
  28. I only get the ACCESS VIOLATION when I select the Symbol Set, fill, and
  29. a point size of 100 or more.
  30.  
  31. Is this a bug in the IBMDEV32.DLL or am I doing something wrong?  If I
  32. am doing something wrong then why do all the other cases work when this
  33. case does not?
  34.  
  35. Thanks for any help. 
  36.  
  37. James Weinkam
  38.  
  39. PS:  This is with the GA+SP.  I decided to try the program on the same
  40. same system with just the GA and it work fine, so I then reaplied the
  41. SP and it now gets the ACCESS VIOLATION again.
  42. just GA
  43.