Hi,

You're the first to report this. It doesn't look like it will be an easy
one to fix, so please give us some time.

A possible workaround might be to have the app restart itself from time
to time.

George Henne                                     
NS BASIC Corporation
http://www.nsbasic.com 

>Hi,
>
>First I would like to thank the NSB team for their great work, despite the 
>problem below and a few other small issues NSB CE generally works 
>well and reliably.
>
>OK, some users of our NSB CE application informed me that after using 
>the app for a longer time the menus (different menus of multiple forms) 
>do not work anymore and the application has to be restarted.
>
>I found the problem, it is the SetMenu function, after calling it repeatedly 
>many times the menu events stop firing, below is the code to reproduce 
>the problem. The program changes the menu 20,000 times, after that 
>the menu events do not fire anymore to call the sub_click sub. When 
>changing the loop to run only 10,000 times it works fine.
>
>The number of menu changes before the event fails to work depends on 
>the number of menu items as well, in our app it is only 700 times. 
>
>Is there any chance for a fix in the near future ?
>
>Thanks !
>
>-----------------------------------------------------------------------------
>
>Dim i
>
>ShowOKButton True 'Set minimize button to close app
>
>
>MsgBox "start"
>UpdateScreen
>
>For i = 1 To 20000
>    SetMenu "titlebar", Array("main")
>    SetMenu "main", Array("sub")
>
>    SetMenu "titlebar", Array("")
>next
>
>SetMenu "titlebar", Array("main")
>SetMenu "main", Array("sub")
>
>MsgBox "end"
>
>Sub sub_click()
>  MsgBox "click"
>End Sub
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to