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

Debug.Print(GC.Debug(true)); DOESN'T Work


  • Please log in to reply
9 replies to this topic

#1 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 02:40 AM

For some reason the following code isn't working for me. Debug doesn't exist.

Debug.Print(GC.Debug(true));

Please help.
Steve


My Other Hobby: Engineer Turned Baker

#2 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 02:49 AM

Adding the Microsoft.Spot.Native got the debug working but GC.Debug isn't there
Steve


My Other Hobby: Engineer Turned Baker

#3 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 02:53 AM

Debug.Print(Debug.GC(true).ToString());
Steve


My Other Hobby: Engineer Turned Baker

#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 April 2012 - 03:24 AM

Hi smarcus3, Yes, it should be Debug.GC(true) [not GC.Debug]. Is that working for you now? Chris

#5 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 03:27 AM

Yup. Thanks. I was wondering if there is any side affect to calling a garbage collect whenever you wanted to. Does it seem possible that I have 47220 Bytes of free memory left. I'm using a N+ with 4.2 RC4 I also got my program working with 4.2. Im using a socket now.
Steve


My Other Hobby: Engineer Turned Baker

#6 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 03:28 AM

Oh and always. Thanks soooo much for all the help. I am beginning to fall in love with netduino. I was so used to arduino but I believe I like the .net environment and debug environment much better.
Steve


My Other Hobby: Engineer Turned Baker

#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 April 2012 - 03:35 AM

Yup. Thanks. I was wondering if there is any side affect to calling a garbage collect whenever you wanted to. Does it seem possible that I have 47220 Bytes of free memory left. I'm using a N+ with 4.2 RC4

If you're not doing anything in your application, that's possible. We freed up some extra RAM in 4.2 :)

Chris

#8 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 03:36 AM

Its grabbing stock info every 5 seconds and checking for new emails every 15. Here is a fuller description: My link
Steve


My Other Hobby: Engineer Turned Baker

#9 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 April 2012 - 03:57 AM

Its grabbing stock info every 5 seconds and checking for new emails every 15. Here is a fuller description: My link

Oh wow, cool. Well, you'll certainly help keep on top of data that way :)

Chris

#10 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 15 April 2012 - 03:58 AM

Thats the goal though last week, it just reminded me of how back of a stock week it was. Oh well.
Steve


My Other Hobby: Engineer Turned Baker




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.