Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal Form w/Assign to objref bug
Message
De
06/01/2002 12:26:25
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
04/01/2002 15:27:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00600514
Message ID:
00601279
Vues:
18
>>>>Works fine for me. Are you sure you are setting the objref to null in the model form when it is destroyed?
>>>>
>>>>
>>>>>Create a simple form class called modalform in mytest.
>>>>>Add a property called "objref" with Assign method.
>>>>>
>>>>>Create a simple form.
>>>>>Add a command button.
>>>>>
>>>>>In the click event add the following code.
>>>>>
>>>>>oform = NEWOBJECT("modalform", "mytest" )
>>>>>oform.objref = thisform
>>>>>oform.show(1)
>>>>>
>>>>>Now run the form.
>>>>>Click the button.
>>>>>Close the modal form.
>>>>>
>>>>>Now try to close the non-modal form.
>>>>>
>>>>>If you remove the assign method. This works without a problem.
>>>>>
>>>>>The same test works fine in VFP 6.0.
>>>>>
>>>>>Can anyone please verify this bug?
>>>>>
>>>>>Troy
>>>
>>>I've added the following code in the Destroy method.
>>>This.ObjRef = .NULL.
>>>
>>>It still does not work in VFP 7.0.
>>
>>That is strange. I use this technique all the time with vfp7 and have no problems.
>
>From what I'm hearing, this is a known bug. Can you send me an example of code ( all the code ) that you know is working. ( Maybe even include the
creation of forms and classes ).

That would be difficult becasue I was using my framework and would have to include a lot of classes. Except for the framework suff, I followed you excample using a porperty that I knew is set to null in the destroy method.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform