> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of (IBM Mainframe Discussion List)
> Sent: Wednesday, November 22, 2006 6:57 AM
> To: [email protected]
> Subject: Re: Any issues with application programs write protecting
> themselves?
> 
> >It is not necessary to UNPROTECT storage before freeing  it.
> >Jim Mulder   z/OS System Test   IBM Corp.   Poughkeepsie,  NY
> In z/OS V1R6.0 MVS System Codes doc the following ABENDs are  documented
> for
> FREEMAINs involving protected storage:
> 605-08, 605-10, 605-18, and B78-10.
> 
> Bill  Fairchild
None of those apply to FREEMAIN of write-protected storage (PGSER PROTECT).

ISTR the abend occuring in pre-OS/390 days, but my recall is hazy. It could
be that I am confusing store-protected with page-fixed. FREEMAIN of
page-fixed I believe is still a no-no. Anyway, my coding style is to "undo"
whatever I did before my program ends. If I page-fix it, then I release it.
If I allocate it, I unallocate it. If I write-protect it, then I make it
read-write.

I am generally averse to acquiring a resource, then relying on the operating
system to release it.


Jeffrey D. Smith
Principal Product Architect
Farsight Systems Corporation
700 KEN PRATT BLVD. #204-159
LONGMONT, CO 80501-6452
303-774-9381 direct
303-484-6170 FAX
http://www.farsight-systems.com/
comments are invited on my encryption project

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to