GEN119 - ��� � OS/2 ��p����뢠���� ��y�樨 � ������⪮� �����?
From
FAQServer@2:5020/181 to
All on Fri May 23 07:37:07 2025
[Q]: ��� � OS/2 ��p����뢠���� ��y�樨 � ������⪮� �����?
[A]: Vitalie Vrabie (2:469/15.89)
1. �������� �����
� ������ �p���� ���� y����⥫� �� �p�楤ypy ��p���⪨ �訡�� � �����p������� ����� (memory allocation error handler). �y��樮���쭮 ���� �����筮 ⮬y �� �� � RTL �� BP. �� �p�楤yp� ���y砥� � ����⢥ ��p����p� ���-�� ���� ���p�� �� y������ �p������p�����, � � ����⢥ p��y���� �뤠�� ���� ��:
a) ���p������� ��p������p�����.
�� ����� 奭���p ����ᠭ ⠪�� �� �� �������� �p��y���� ������⢮ �����.
b) ��p�y�� null pointer.
� �⮬ �y砥 �맮� getmem ����p�頥� null. � �p��p���� �p���p�� p��y���� getmem, ��� ����� ������������ (���짮��⥫�, � ���� � �.�.). � �� ��� �⮣� �� �p���p��, � ����⢥��� �p��� �뫥�� �� GPF ����� ���p��y�� �y�� �������.
c) �p���y����.
��� �������p���. :)
1.1. minfree
�p� ������樨 (�맮�� getmem, ��� ��� ⠬ ���),
� ������� ���� �� p������ � ���p�� ����� 祬 minfree, ��᪠������ ��p���� (�p�� harderr).
ᬮ�p�� 奫�:
[-- 8< -- ]
SWAPPATH Command: Minfree Parameter
[^Y]
This value does not define the amount of
free space on the disk at any given time
because applications can cause less free
space to be available on the disk than
what is specified by minfree.
[-- 8< -- ]
2. ���� ���p�樨
��� �訡�� � ���묨 ���p��ﬨ ⮦� �y���y�� ����� �p�楤yp� (handler) �� ��p���⪨. � � ���⥪�� ������� �p���� ⮦� �y���y�� �����p �� ���. ����, � ��� ⠪�� ⮦� ���� (������ �p�� ���� ��直� ��p⮭�/dn/tvision/command.com/whatever � �뢮��� � abort/retry/ignore, � ��⥬ ��p����� �⢥� p� ��⥬�).
��ᯥp����� p���, ��ᬮ�p�� fc/2. �� _�ᥣ��_ �y��� �뢮���� �p�᭮� ���誮 � retry/cancel, ��� ����ᨬ��� �� autofail. � ��祬y? ���y �� �� y�⠭�������� ᮡ�⢥��� 奭���p �訡�� ����� ���p�権.
�������筮 � BP/VP RTL ����y���� �⨬ 奭���p�� ��� {$I+}/{$I-}.
��ᬮ�p�� y p���� �p�y��, ⠬ �p� ���. �� � � ��/������ ��� ᥬ����᪨ �������筮.
�����⢥���� �� � ���/������ ����� ����p���� ��䮫⭮� ���������. :)
- - -
3. autofail
autofail=yes ��py���� ��直� ���p��⨢�� ���������� harderr.exe (����, ��䨣� �� ���⠥���, ��� � ������� �� �맮�y�*). � �y砥 � ���묨 ���p��ﬨ ����p�頥��� "fail", � � �y砥 � ������樥� ����� �� �롨p��� ���� �y��� 1.b, ���� �y��� 1.c - �筮 �� ᪠�y, �� ��-����y 1.b.
�p� autofail=no ����p�頥��� � �� ��p�� p.
- - -
����p�⨪y (�������� �y��権 / ����p� �p�p뢠���) �� �p����y. ������� ��� ���p�y� �� ���짮����� - ⮫쪮 �p�� VP/BP RTL � ⢨��.
- - -
* ����p���, ⠪� ��뢠��. �� �� �p��� �� ������ ���p��⨢��� ���p�ᮢ. :)
--- INN 2.7.3 (rc1 version)
* Origin: This echo is READ-ONLY. Send %HELP to FAQSERVER at (2:5020/181)