On Fri, 09 Aug 2013, bill-lancaster wrote:
> In a fairly simple programme I get this error when only one message box is
> displayed
> 
> Is there a known cause for this?
> 

The cause is that you *want* to display another one... This sometimes
happens to me when I display a Message box from an event handler. It seems,
while the Message box is displayed (waiting for the user), the event loop is
called again and may dispatch the same event another time which will then
cause your error.

I personally use this construct to serialise these Message boxes:

Do
  Try Message.Error(("This was an error"))
While Error

instead of just

Message.Error(("This was an error"))

Regards,
Tobi

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to