From 33b77db55598104786ee41a7a4dc83a18fec7075 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:44:23 +0000 Subject: Utilisateur : Fcolin Date : 30/06/06 Heure : 17:20 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 71) --- CSharp/Ivy/Ivy/Ivy.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'CSharp/Ivy') diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs index 892ed0f..af5096f 100644 --- a/CSharp/Ivy/Ivy/Ivy.cs +++ b/CSharp/Ivy/Ivy/Ivy.cs @@ -226,10 +226,11 @@ namespace IvyBus + +#if (PocketPC) #if (!PocketPC) [Category("Ivy")] #endif -#if (PocketPC) [DefaultValue(null)] public System.Windows.Forms.ContainerControl ContainerControl { @@ -775,7 +776,7 @@ namespace IvyBus IvyEventArgs args = (IvyEventArgs)state; ev(this, args); }; - syncContext.Send(update, e); + syncContext.Post(update, e); } else ev(this, e); @@ -803,6 +804,10 @@ namespace IvyBus { FireEvent(temp,e); } + catch (SynchronizationLockException ex) + { + // protect terminaison + } catch (ObjectDisposedException) { // protect terminaison @@ -863,7 +868,7 @@ namespace IvyBus IvyDieEventArgs args = (IvyDieEventArgs)state; temp(this, args); }; - syncContext.Send(update, e); + syncContext.Post(update, e); } else temp(this, e); @@ -878,7 +883,11 @@ namespace IvyBus { throw new IvyException("(callCallback) Not regexp matching id " + e.Id); } +#if(PocketPC) bind.Firevent(parentControl, e); +#else + bind.Firevent(syncContext, e); +#endif } /* -- cgit v1.1