A first chance exception of type 'System.Exception' - Netduino Go - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

A first chance exception of type 'System.Exception'


  • Please log in to reply
23 replies to this topic

#1 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 03:06 PM

public class LedMS88SR74HC595 : LedMatrix
    {
        protected OutputPort[] RowPortMap;
        protected ShiftRegister74HC595 ShiftRegister;
         static NetduinoGo.ShieldBase sb = new NetduinoGo.ShieldBase(GoSockets.Socket5); 
         

        public LedMS88SR74HC595() :
            this(new ShiftRegister74HC595(sb.Pins.GPIO_PIN_D11))
        {
        }
//
//
//
//


error:

A first chance exception of type 'System.Exception' occurred in GoBusSerialTransport.dll
An unhandled exception of type 'System.Exception' occurred in GoBusSerialTransport.dll

Do i have to install dll?

#2 Nicky

Nicky

    Advanced Member

  • Members
  • PipPipPip
  • 78 posts
  • LocationDenmark

Posted 15 October 2012 - 03:29 PM

Have you upgraded your Shieldbase firmware to beta 4 and remembered to remove the old NetduinoGo.Shieldbase.dll and added the newer version?

ntools
TCP Listener (Beta) · FTP Server (Alpha)
Netduino Plus Go Module · Xml Parser
http://ntools.codeplex.com/


#3 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 03:31 PM

Have you upgraded your Shieldbase firmware to beta 4 and remembered to remove the old NetduinoGo.Shieldbase.dll and added the newer version?



YEP!

#4 ransomhall

ransomhall

    Member

  • Members
  • PipPip
  • 12 posts
  • LocationBurlington, VT, USA

Posted 15 October 2012 - 05:03 PM

I can duplicate supra's issue. It occurs on the open port call below. And just for grins, after updating all the appropriate firmware, I was able to blink an LED on the shield base. Didn't do any testing beyond that after hitting the exception. Also, the exception occurs regardless if anything is wired to the pins on the shield base.

Here's my code:

NetduinoGo.ShieldBase shieldBase = new NetduinoGo.ShieldBase(GoSockets.Socket5);
      // open serial port
      SerialPort serial = new SerialPort(shieldBase.SerialPorts.COM2, 9600, Parity.None, 8, StopBits.One);
      serial.Open();


#5 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 October 2012 - 06:39 PM

Hi ransomhall, Very interesting. Can you please post a zipped project file for this? Just the three lines is fine; in this case we're really interested in the project files and compiled binary folder too. We'd really like to dig into this today and see if we can get it fixed. Thank you, Chris

#6 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 06:47 PM

-- shortened by moderator --

I still having pb serial.Open();

-- shortened by moderator --

Edited by Chris Walker, 15 October 2012 - 07:08 PM.
removed long quoted sections


#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 October 2012 - 07:11 PM

Hi supra,

-- shortened by moderator --

I still having pb serial.Open();

-- shortened by moderator --

I'm sorry, but we're having a really hard time understanding your post. We really want to help.

Can you please carefully explain the situation, with details? Maybe also ask a friend to read the post first to make sure we can get help guide you properly?

I have shortened your previous post, removing the long quoted sections (original posts still remain).

Thank you Supra,

Chris

#8 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 07:25 PM

I am trying to get 8x32 dotmatrix working. Using 5 x 74HC595 and the last one for rows. I will pb used 74HC259 or whjatever for rows only
I got sample frm Mylink. So i changed into NGO frm N. The only pb is coming frm Class LedMS88SR74HC595.
Thanks.

#9 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 15 October 2012 - 07:29 PM

Could you explain me what you mean with "pb"? Or type whole words? That would help us help you. I -think- I figured out frm is "from".
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#10 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 07:35 PM

Could you explain me what you mean with "pb"? Or type whole words? That would help us help you.
I -think- I figured out frm is "from".


Sorry about that.
pb = problem
frm form
abt = about
AfAIK= as far as i know
brb = be right back
That was dating back in 1984 when the internet came out.

#11 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 October 2012 - 07:39 PM

Hi Supra,

Sorry about that.
pb = problem
...

That is very helpful indeed. If you can spell out the words, it'll really help us. Some members of the community were barely born in 1984 and don't know the shorthand.

To identify the issue, we'll need to find the line of code (inside the class) which exhibits the issue.

What problem are you experiencing, specifically? Are you getting an Exception? If so, which one? On which line of code?

Chris

#12 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 15 October 2012 - 07:43 PM

It occurs on the open port call below. And just for grins, after updating all the appropriate firmware, I was able to blink an LED on the shield base. Didn't do any testing beyond that after hitting the exception. Also, the exception occurs regardless if anything is wired to the pins on the shield base.

Hi Eric,

I haven't been able to reproduce this error, and have been using COM2 and an XBee successfully. However, I did notice that when I originally updated my Shield Base it had corrupted my Netduino Go and had to reflash it. Since then everything has been hunky-dory. See this post for more info.

Cheers,
Steve

#13 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 15 October 2012 - 07:55 PM

@chris
If you scroll up to see my previously posted

w/out using system.io.port;

I got error while deployed NGo
And the breakpoint : static ShieldBase sb = new ShieldBase(GoSockets.Socket5);
The error:
A first chance exception of type 'System.Exception' occurred in GoBusSerialTransport.dll
An unhandled exception of type 'System.Exception' occurred in GoBusSerialTransport.dll


Now, I followed ransomhail. And adding using system.io.port;
The problem is i got 2 red underlines: Serial.Open(); <== but why is capital letter "S" instead of "s"?

Thank

#14 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 15 October 2012 - 09:35 PM

Some members of the community were barely born in 1984 and don't know the shorthand.


Some of us weren't born for a few years yet in 1984 (I'm not even going to mention Omar) hell in 84, my mother was 14 :P .

When you talk EE use small words, I'm just a Software Developer :)
My Blog/Site and Everything Else

If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.

 

Oh my. So many things, so little money!!

 


#15 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 October 2012 - 09:49 PM

Hi supra,

Now, I followed ransomhail. And adding using system.io.port;
The problem is i got 2 red underlines: Serial.Open(); <== but why is capital letter "S" instead of "s"?

A capital S in serial won't work properly. C# is case-sensitive which means that the object "serial" needs to be spelled lower-case to use it. "Serial" will refer to something else...so Visual Studio will complain :)

Chris

#16 GregR

GregR

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts
  • LocationKeller, Tx

Posted 16 October 2012 - 04:12 AM

Some of us weren't born for a few years yet in 1984 (I'm not even going to mention Omar) hell in 84, my mother was 14 :P .



You and Chris are making some of us feel really old... :blink:

#17 neslekkim

neslekkim

    Advanced Member

  • Members
  • PipPipPip
  • 350 posts
  • LocationOslo, Norway

Posted 16 October 2012 - 06:42 AM

You and Chris are making some of us feel really old... :blink:


agreed... I went to electronics school in 86..

--
Asbjørn


#18 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 16 October 2012 - 11:31 AM

      serial.Open();

Never mind. I solved problem

#19 Lunddahl

Lunddahl

    Advanced Member

  • Members
  • PipPipPip
  • 152 posts
  • LocationEurope, Denmark

Posted 16 October 2012 - 07:52 PM

      serial.Open();

Never mind. I solved problem


Thank you for sharing the solution. :blink:

- Ulrik

#20 DenisDuino

DenisDuino

    New Member

  • Members
  • Pip
  • 2 posts

Posted 30 December 2012 - 02:29 PM

I get the same exception only when I use Socket5. It works like a charm when I plug the shield on socket 2, 3 or 4 and change the code accordingly...

 

==>  ShieldBase sb = new ShieldBase(GoSockets.Socket5);

 

Context: the shield base has been reflashed and Netduino Go firmware and sdk updated to 4.2.1.

 

Any idea?

 

Details:

 

A first chance exception of type 'System.Exception' occurred in GoBusSerialTransport.dll

 

Stack:

 

 

  GoBusSerialTransport.dll!GoBus.GoBusSerialTransport.ResetSlave() Line 1027 + 0x54 bytes C#
  GoBusSerialTransport.dll!GoBus.GoBusSerialTransport.GoBusSerialTransport(string portName) Line 175 + 0xa3 bytes C#
  NetduinoGo.ShieldBase.dll!NetduinoGo.ShieldBase.ShieldBase(GoBus.GoSocket socket) Line 103 + 0xbe bytes C#
> NetduinoGoApplication1.exe!NetduinoGoApplication1.ShieldBaseOutputBlinker_D2.ShieldBaseOutputBlinker_D2() Line 18 + 0x16 bytes C#
  NetduinoGoApplication1.exe!NetduinoGoApplication1.Program.Main() Line 24 + 0x28 bytes C#
 
(seems that GoBusSerialTransport.cs isn't open-sourced, correct?).
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.