| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Protected mode differenc |
-=*>})Denis Tonn was nattering on to Daniel Lynes
about Protected mode differenc on 03 Dec 96 19:10:06({<*=-
DT> Can you give some specific examples of what Win95 is doing and the
DT> same under OS/2?
Yes, sure, although not the actual code, as it's been changed to take care
of the problem. The problem was that I was inadvertently reading code from
outside my allocated memory. Win95 gave me a GPF; OS/2 Warp did not.
eg.
int main( int argc, char **argv )
{
.
. [ setup code ]
.
p=( char * )malloc( 239 ) ; // Allocate space for 239 bits
p2=( char * )malloc( 72 ) ; // Allocate space for 72 digits
.
. [ bunch of 239-bit binary to 72-digit decimal conversion code ]
.
p3=( char * )malloc( 239 ) ; // Allocate space for bit copy
/*
* The next line and the following one are GPF enabled (in Win95),
* but not in OS/2.
*/
memcpy( p3, p+extraBits, 239 ) ; // Copy over new bitstream
write( handle, p3, 239 ) ;
.
. [ bunch of other stuff ]
.
}
... Beta Testers who lie: On the next Geraldo.
--- Blue Wave/Max v2.12 OS/2 [NR]
* Origin: Enitharmon/2 Beta Home Site 604-527-0195 (1:153/8028)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 153/8028 831 800 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.