Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: return a new object by reference fire a C5 crash
Message
 
 
À
12/04/2004 06:09:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00893984
Message ID:
00894002
Vues:
18
Hi, Fabio.

The code bellow doesn't gave me any C5 using VFP 8.0, SP 1. Can you try to reproduce it in other machines?

See you,


>Next Fire a C5 crash:
>
>LOCAL oReference
>	WITH CREATEOBJECT("RootObject")
>		.ReturnAnObject(@m.oReference)
>*		? m.oReference.myReference.Class
>	ENDWITH
>
>DEFINE CLASS RootObject as Custom
>
>	FUNCTION ReturnAnObject(oObjectRef as Object) as Object
>		oObjectRef = CREATEOBJECT("subObject")
>		oObjectRef.myReference = m.This           && line C5
>	ENDFUNC
>	
>ENDDEFINE
>
>DEFINE CLASS subObject as Custom
>
>	myReference = .NULL.
>
>ENDDEFINE
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform