🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3443

ACCESS VIOLATION in IBMDEV32.DLL

#3443
From: James Lawrence Weinkam
Date: Mon, 11 Jan 1993 22:02
32 lines
1833 bytes
I wrote a program to display each character of the selected font in
sequence.  The font is selected by means of the WinFontDlg procedure.
Once the font is selected, I do a GpiCreateLogFont using the fAttrs 
returned from WinFontDlg.  Then I do a GpiSetCharSet, GpiSetCharBox,
GpiQueryFontMetrics, GpiQueryCharStringPos to set the current font set,
size and to determine the height and width of the String to be displayed.
All these functions work perfectly.  I then do a GpiCharString using the
same string as was used in the GpiQueryCharStringPos.  

If the selected font is the Symbol Set font, and the size is greater 
than 100 points I get an ACCESS VIOLATION AT LOCATION 1ADC791D in
IBMDEV32.DLL 

If the selected font is the Symbol Set font with outline rather than fill
then the program works perfectly reguardless of size.  It also works
for all the other fonts.

I only get the ACCESS VIOLATION when I select the Symbol Set, fill, and
a point size of 100 or more.

Is this a bug in the IBMDEV32.DLL or am I doing something wrong?  If I
am doing something wrong then why do all the other cases work when this
case does not?

Thanks for any help. 

James Weinkam

PS:  This is with the GA+SP.  I decided to try the program on the same
same system with just the GA and it work fine, so I then reaplied the
SP and it now gets the ACCESS VIOLATION again.
just GA
Technical Details
Message-ID: <weinkam.726789764@sfu.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!weinkam

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!newsserver.sfu.ca!sfu.ca!weinkam
From: weinkam@fraser.sfu.ca (James Lawrence Weinkam)
Subject: ACCESS VIOLATION in IBMDEV32.DLL
Message-ID: <weinkam.726789764@sfu.ca>
Sender: news@sfu.ca
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Mon, 11 Jan 1993 22:02:44 GMT
Lines: 32