G120 Boot issue

I think i can do that :wink:

but the last call in main …Run() is a dead end method…


 public void Run()
        {
            _socket.Bind(new IPEndPoint(IPAddress.Any, 80));
            _socket.Listen(15);

            while (true)
            {
                var workingSocket = _socket.Accept();
                RequestHandler(workingSocket);
            }
        }

Ok, then scratch that. :slight_smile:

I made a custom board with a G120 module and added a crystal for the RTC

Unfortunately there is no exception… The board hangs at ??? i don’t know yet. exactly :frowning:

@ LouisCpro, Do you use WiFi with your G120HDR?

No, til then I’m using ENC28 + SD Card + USB CLient DP… that’s all folks, and everything looks fine til now…

Any reason why you use WebSocket instead of HttpListener on your code ?

Mainly because I had some problems with HTTP code from MF 4.1 on EMX

Can you try an instanciation of your PersistentStorage as a real one instead of a ‘var’, so that the GC will see it as a real persistant element and also put it as a static member of the program class…An idea like this…



    public class Program
    {
        private static PersistentStorage pse = null;
....
        public static void Main()
        {
...
        pse = new PersistentStorage("SD");
....




I can give it a try… Let you now after i have satisfied my kids and myself with some food :wink:

I ve something else : u init the ps storage in a try catch to Mount it and then use it out of the try, which means the var scope is not available anymore and also the Mount will left during GC…

Excuse for the style but i write from m’y mobile…

Thanks LouisCpro… I created a new thread after isolating where things goes wrong “http://www.tinyclr.com/forum/topic?id=10197