Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug ? Successfully having C0000005 error
Message
De
24/12/2006 07:53:23
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
24/12/2006 07:16:18
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01180000
Message ID:
01180002
Vues:
20
>It is certainly a program with errors.
>
>You should not RELEASE ALL within a FOR - the variable m.xi is used within the FOR loop. Commands like RELEASE ALL, CLEAR ALL and CLOSE ALL are quite drastic, and should only be used at the beginning of a large program, not in the middle of it.
>
>>hi,
>>
>>These lines cause c0000005 error on VFP6
>>
>>
>>for m.xi = 1 to 10
>>release all
>>DIMENSION af1[10]
>>m.f1 = CREATEOBJECT("custom")
>>m.f1.addproperty('af1[1]')
>>ACOPY(af1,m.f1.af1)
>>
>>m.f1.af1[1] = CREATEOBJECT('custom')
>>m.f1.af1[1].addproperty('af1[1]')
>>ACOPY(af1,m.f1.af1[1].af1)
>>?m.f1.af1.af1.name
>>endfor
>>
>>
>>is it a bug ?
>>
>>suhashegde
>>
>>Update :
>>Need to run twice in VFP6 sp5 and only once in VFP8


oh!
release all is befor the for
sorry,
my typo

but why does it crash on the
?m.f1.af1.af1.name ?
release all
for m.xi = 1 to 10
DIMENSION af1[10]
m.f1 = CREATEOBJECT("custom")
m.f1.addproperty('af1[1]')
ACOPY(af1,m.f1.af1)

m.f1.af1[1] = CREATEOBJECT('custom')
m.f1.af1[1].addproperty('af1[1]')
ACOPY(af1,m.f1.af1[1].af1)
?m.f1.af1.af1.name
endfor
suhashegde

Update

infact there is also no need of the 'for' loop it crashes without it also
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform