summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/IvyPPC/Ivy.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs
index 892ed0f..af5096f 100644
--- a/CSharp/Ivy/IvyPPC/Ivy.cs
+++ b/CSharp/Ivy/IvyPPC/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
}
/*