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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only