Main Site Documentation

Gadgeteer - Glide Compile Error


#1

On my first Glide project I receive this error during compile in debug mode.
An unhandled exception of type ‘System.Xml.XmlException’ occurred in System.Xml.dll.
This seems to be the line of code in question:

static Window[] windows = new Window[3];
windows[0] = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window2 ));

Any suggestions


#2

Welcome to the forum!

Did you design the window using Glide designer?


#3

Yes.


#4

Tell more about what hardware/firmware you are using.

Cool avatar!


#5

This happens in a new project using NETMF 4.2 - Gadeteer board and a TE35 display.

In the file – Resources.Designer.cs the following code is not being auto generated.

internal static string GetString(Resources.StringResources id)
{
return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id)));
}

I have the following libraries added in my Program.cs file
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

using GHIElectronics.NETMF.Glide;
using GHIElectronics.NETMF.Glide.Display ;
using GHIElectronics.NETMF .Glide.UI ;

Any suggestions?


#6

@ RobotMan - have you compiled glide to 4.2?


#7

After downloading the Glide files I started a Glide directory under Program Files and recompiked to NETMF 4.2.
In my Gadgeteer project I have added a link in the resources to the Glide.dll file in bin\release directory.


#8

How did you add the xml


#9

It was created by the GHIElectronics Glide designer. Ther version was 1.0.6 whend it was copied off the web site. Note below it was changed to 1.0.5


#10

I mean how did you add it to your resources - as a string ?


#11

Yes.