In my base class form, I create 2 toolbars with this syntax:
IF TYPE("thisform.cToolbar")="O" AND !ISNULL(THISFORM.cToolbar)
RETURN
ELSE
THIS.cToolbar = CREATEOBJECT("myToolbar1")
THIS.cToolbar.SHOW()
THIS.cToolbar.DOCK(0)
ENDIF
One of the toolbars has an exit button with this code:
_screen.ActiveForm.Release()
When I run the app and click the exit button, both toolbars disappear and the form freezes. If I click on the app's icon in the Winodws
task bar, VFP crashes and I get an access violation error. Any idea how to fix this? The base form is MDI with ShowWindow set as 2 (as top level form). Thanks.
Mon
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement