outlookhub

Oct 5, 2010 at 9:30 AM

hello Tom

i'm tryong to use your outlookhub demo but i got a null reference error at startup .

is it possible that this problem is related to the fact that i have a italian rom installed on my device?

regards

Coordinator
Oct 8, 2010 at 1:40 AM

i don't think this has anything to to with an italian rom.

although it's just in development it worked even with a newly reset device, but it searches for a "hotmail" account as favorite.

what exactly causes the null reference?

 

Oct 8, 2010 at 7:46 AM
Tom
really i did not undertsand which is the problem
in debug mode it crash in this point into TimeEventServer.cs

public void Progress()
{
try
{
int tick = Environment.TickCount;
int dt = tick - lastTick;
if (dt >= RefreshInterval)
{
PerformAnalysis(tick);
lastTick = tick;
InvokeThreadDelegates();
if (Tick != null)
{
timeEventArgs.SetTick(tick);
Tick(
this, timeEventArgs);
}
if (!host.IsRendering && Enabled && host.Renderer.Invalidated)
{
host.Update();
}
InvokeDelegates();
}
}
catch (Exception ex)
{
if (Debugger.IsAttached) throw;
Screen s = Screen.Current;
if (s != null) s.RaiseUnhandledException(ex);
}
}

regards

From: [email removed]
To: [email removed]
Date: Thu, 7 Oct 2010 18:40:47 -0700
Subject: Re: outlookhub [silvermoon:229632]

From: Tom69
i don't think this has anything to to with an italian rom.
although it's just in development it worked even with a newly reset device, but it searches for a "hotmail" account as favorite.
what exactly causes the null reference?

Read the full discussion online.
To add a post to this discussion, reply to this email (silvermoon@discussions.codeplex.com)
To start a new discussion for this project, email silvermoon@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com
Coordinator
Oct 8, 2010 at 7:30 PM

the exception has a stack trace which tells you more.

Oct 22, 2010 at 1:46 PM

I've also got a null reference when the sender of one of the SMSes I had in my HTC HD was null, ereted this quick fix and moved on:

 

Index: C:/Work/Learn/Silvermoon/SilvermoonSvn/Silvermoon/Examples/Outlook/Models/Message.cs
===================================================================
--- C:/Work/Learn/Silvermoon/SilvermoonSvn/Silvermoon/Examples/Outlook/Models/Message.cs (revision 52428)
+++ C:/Work/Learn/Silvermoon/SilvermoonSvn/Silvermoon/Examples/Outlook/Models/Message.cs (working copy)
@@ -17,7 +17,7 @@
         {
             this.msg = msg;
             Flags = msg.Flags;
-            Sender = msg.Sender.Name.Trim();
+            Sender = msg.Sender == null ? "" : ((msg.Sender.Name ?? "").Trim());
             Subject = msg.Subject.Trim();
             DeliveryDate = msg.LocalDeliveryTime; // DateTime.FromFileTimeUtc((long)msg.SystemDeliveryTime);
             Recipients = msg.Recipients;

 

 

 

Oct 22, 2010 at 2:29 PM

Raul

what can i say?

YOU ARE GREAT

thank for your support