Quantcast
Channel: MonoBrick.DK » All Posts
Viewing all articles
Browse latest Browse all 91

Exception during execution

$
0
0

Hey, me again.
I do have the following problem:
When I compile my program with VisualStudio, I’m getting an error saying “Exception during execution” when I try to run it via the Brick.

However, when I write the same Program with MonoDevelop (on my Raspberry Pi) everything works perfectly.

Also when I run the VisualStudio program via SSH, everything works perfectly.
That’s pretty confusing to me.
I will use Xamarin/MonoDevelop if there’s no other solution, but I would prefer to use VisualStudio.

The program is pretty simple:


using System;
using MonoBrickFirmware;
using System.Threading;
using MonoBrickFirmware.Display;

namespace Ev3_framework4
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World from Visual Studio");
            Thread.Sleep(10000);
        }
    }
}

EDIT:
Using Mono on my pc also does not work.
It could be beacuse of Mono and Visual Studio creating a .pdb file instead of a .mdb file in bin/debug. The Mono version on my Raspberry Pi, which I made the working version with, creates such a .mdb instead of the .pdb.

EDIT 2:
I don’t know what happened, but it’s working right now with my Visual Studio version using the Brick.


Viewing all articles
Browse latest Browse all 91

Trending Articles