diff options
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs b/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs index 5d5b3df..4fbc45c 100644 --- a/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs +++ b/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs @@ -113,10 +113,12 @@ namespace IvyBus // translate part of expression to object property
public void FormatExpression()
{
- if (Callback != null)
+ //// Safely :
+ EventHandler<IvyMessageEventArgs> temp = Callback;
+ if (temp != null)
{
//TODO Pocket PC doesn't have Target Member
- object target = Callback.Target;
+ object target = temp.Target;
if (args == null)
{
args = new object[arguments.Count];
|