TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Wim Veldhuis
from: Darryl Pierce
date: 1994-12-03 15:18:22
subject: SUBJECT:CONSTANT UNHANDLE

-> Could you post this part for us to check, DOS/Windows is not as good in
-> memory checking as OS/2 is :-)

Sure, here's the code patch that's getting the access violation errors:

int loadMsg( unsigned long msgNum )
  {
    FILE *f;

    f=fsopen( "82.MSG", "rb", SH_COMPAT | SH_DENYWR );
    if( f )
      {
        while( !feof( f )) // <-- This is where the access violation occurs
          {
            // Process the file
          }
        fclose( f );
      }
  }

I have in my *.DEF file:

STACKSIZE 32767
HEAPSIZE  32767

I'm starting to think I should either remove these lines or increase the sizes
to around 256k or so....

-Darryl
--- FidoPCB v1.5 beta-'j'

* Origin: The Vampyre Bar! * 609 453-9096 * 800 megs * Team OS/2 (1:266/74)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 266/74 76 3615/50 229/2 12/2442 711/409 54/54 711/808 809 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™.