-----------------------------------------------------------------------------------------------------
[ENHANCED] VFP 9.0 FIX - THE DEFAULT VALUE FOR THE STACKSIZE TERM IN THE CONFIGURATION FILE
January 2025
-----------------------------------------------------------------------------------------------------
CCB
1. BUG:
In vfp9, the default value is 128 for the STACKSIZE term in the configuration file,
now the default value is 2048 for the STACKSIZE term in the configuration file.
2. CAUSE:
There are some BUGs in the following code.
3. RESOLUTION:
We can write some code to fix the BUG.
Fun403b45 :: ; proc near
push esi ;0x00403b45 : 56
pushd 080Fh ;0x00403b46 : 680f080000
mov eax , 04Ch ;0x00403b4b : b84c000000
call Fun42bf2a ;0x00403b50 : e8d5830200
xor edx , edx ;0x00403b55 : 33d2
cmp eax , edx ;0x00403b57 : 3bc2
je Label5c72e1 ;0x00403b59 : 0f8482371c00
mov ecx , dword ptr [eax] ;0x00403b5f : 8b08
lea esi , dword ptr [ ecx + 4 ] ;0x00403b61 : 8d7104
cmp esi , edx ;0x00403b64 : 3bf2
mov dword ptr [ecx] , eax ;0x00403b66 : 8901
je Label5c72e1 ;0x00403b68 : 0f8473371c00
mov dword ptr [ esi + 16 ] , edx ;0x00403b6e : 895610
mov dword ptr [ esi + 20 ] , edx ;0x00403b71 : 895614
mov dword ptr [esi] , offset Data9200a0 ;0x00403b74 : c706a0009200
;
; ------------------------------------------------------------------------------------------
; VFP 9.0 FIX - THE DEFAULT VALUE FOR THE STACKSIZE TERM IN THE CONFIGURATION FILE
; May 2021
; ------------------------------------------------------------------------------------------
; CCB
;
; In vfp9, the default value is 128 for the STACKSIZE term in the configuration file,
; now the default value is 2048 for the STACKSIZE term in the configuration file.
;
; 2021/5/26, by ccb
;
; mov word ptr [ esi + 56 ] , 080h ;0x00403b7a : 66c746388000
mov word ptr [ esi + 56 ] , 0800h ;0x00403b7a : 66c746388000
mov dword ptr [ esi + 64 ] , edx ;0x00403b80 : 895640
mov dword ptr [ esi + 68 ] , edx ;0x00403b83 : 895644
mov dword ptr [ Data93a780 ] , esi ;0x00403b86 : 893580a79300
call Fun403b93 ;0x00403b8c : e802000000
pop esi ;0x00403b91 : 5e
ret ;0x00403b92 : c3
4. APPLIES TO:
VFP 9.0.0.2412
VFP 9.0.0.3504 (SP1)
VFP 9.0.0.4611 (SP2)
VFP 9.0.0.5015 (SP2)
VFP 9.0.0.5411 (SP2)
VFP 9.0.0.5721 (SP2)
VFP 9.0.0.5815 (SP2)
VFP 9.0.0.6303 (SP2)
VFP 9.0.0.6602 (SP2)
VFP 9.0.0.7423 (SP2)
The bug has been fixed in VFP Advanced.
5. REFERENCE WEBSITES:
1, baiyujia.com:
http://www.baiyujia.com
http://www.baiyujia.com/vfpdocuments/f_vfp9fix11.asp
http://www.baiyujia.com/vfpdocuments/f_vfp9fix174.asp
http://www.baiyujia.com/vfpdocuments/f_vfp9fix175.asp
http://www.baiyujia.com/vfpdocuments/f_vfp9fix234.asp
http://www.baiyujia.com/vfpdocuments/f_vfp9fix280.asp
http://www.baiyujia.com/vfpdocuments/f_vfp9fix281.asp
6. OTHER:
For reference only, there is no guarantees.
Any questions or suggestions, please send me an email at ccb2000@163.com.
|