Sign In Register

How can we help you today?

Start a new topic
Solved

Unity Windows Phone 8

 

Hello,


I just figured a bug in the file GameSparksSender.cs for Windows Phone 8.


Line 40

public void sendAsync(Action<IDictionary<string,object>> callback)
		{
			try{
				m_callback = callback;

#if UNITY_WP8
				sendAsyncThread();
#else
				AsyncSendDelegate d = new AsyncSendDelegate(GameSparksApi.send);
				d.BeginInvoke(data, new AsyncCallback(processAsyncResult), d);

			}catch(Exception e){
				GameSparksApi.DebugMsg(e.ToString());
			}
#endif

		}

So, I changed it to this:


public void sendAsync(Action<IDictionary<string,object>> callback)
		{
			try{
				m_callback = callback;

#if UNITY_WP8
				sendAsyncThread();
#else
				AsyncSendDelegate d = new AsyncSendDelegate(GameSparksApi.send);
				d.BeginInvoke(data, new AsyncCallback(processAsyncResult), d);

			
#endif
            }catch(Exception e){
				GameSparksApi.DebugMsg(e.ToString());
			}
		}

And it works fine now.          

1 Comment

Thanks for the heads-up Micheal, we are going to look into this.