Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crash with combobox by popup
Message
 
 
À
27/12/2003 16:23:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00862276
Message ID:
00862283
Vues:
11
Hi Fabio,

Your code below demonstartes bad programming practice more than a bug. The RELEASE POPUP pp_st command doesn't belong in DropDown event and removing it eliminates crash.

<snip>

>But this is not true, this is for a very hugly VFP programming model:
> Object instance on PRG and VCX/SCX are very very different
>
>Run this, and the crash fire:
>
>PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>WAIT WINDOW "Wait for crash - Not press please" TIMEOUT 3
>KEYBOARD '{ALT+DNARROW}' PLAIN CLEAR
>RETURN
>
>DEFINE CLASS form1 AS form
>
>	Caption = "Form1"
>	Name = "FORM1"
>
>	ADD OBJECT combo1 AS combobox WITH ;
>		RowSourceType = 9, ;
>		RowSource = "pp_st"
>
>	PROCEDURE combo1.DropDown
>		RELEASE  POPUP pp_st
>	ENDPROC
>
>	PROCEDURE load
>		DEFINE POPUP pp_st RELATIVE
>		DEFINE BAR 1 OF pp_st PROMPT "\<Barra 1"
>	ENDPROC
>
>ENDDEFINE
>
>
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform