Show Posts
Pages: 1 2 [3] 4 5 ... 25
31  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Support for ctrl+ins and other std windows keys on: August 09, 2010, 03:29:07 pm
Apparently you didn't even bother reading my post in the other thread or following the link to the google bug.

I'm sorry it wasn't the answer you were looking for, but re-posting does not change the answer.  The people you say are acting like God are merely other users stating their opinion.  If your opinion counts, why shouldn't theirs?  It's moot anyway, because if you follow my link in the other post you will see that the actual IDE Developers have already made a decision on this particular issue.
32  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Support for ctrl+ins and other std windows keys on: August 09, 2010, 10:01:50 am
Why re-post this?

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1281222299/11#11

As I stated, someone already submitted a bug report on google and the Arduino team apparently decided it needed to be added on the Processing side.  If it is that important to you, you need to post on the Processing forum, not re-post on the Arduino forum.

BTW, while I appreciate be called a guru, I think you'll find that I, like most of the other people here are just regular Arduino users like you.   smiley-wink
33  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Memory leak in WString / TextString Library? on: May 12, 2009, 12:02:13 am
Wow, Mikal, thank you!  I'm at 20 minutes plus with no problems on the example sketch.  Previously, it would lockup in a few seconds!  Your first suggestion worked:

Code:
  ~String() { free(_array); } // <--- add this line

Hopefully, we can get this added into the next release.  Thank you so much for taking the time to look into this!   smiley
34  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Memory leak in WString / TextString Library? on: May 11, 2009, 07:05:57 pm
I get an error when I add that line:

Code:
o: In function `~String':
D:\Downloads\Arduino\arduino-0015/hardware\libraries\String/WString.h:34: undefined reference to `operator delete[](void*)'
35  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Memory leak in WString / TextString Library? on: May 08, 2009, 08:52:13 pm
Thanks for the info Mikal.  Hopefully it will get straightened out as it is a very useful library.
36  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Memory leak in WString / TextString Library? on: May 07, 2009, 03:33:27 pm
Thanks for responding!  While I agree that I seem to be hitting the end of SRAM, the way that the library is supposed to work it should not be happening.  And it should really never get passed the 50 characters that it was declared with.  On each pass of the loop the first line should wipe the array and set it to " This_Is_A_Test!!" thereby not taking up any more memory.

I have poked around in the library code (it is a core library included with the IDE).  Unfortunately, I am not familiar enough with c++ to figure out the problem.  Hence, I was hoping one of the several c++ guru's we have would take a peek  smiley-wink
37  Forum 2005-2010 (read only) / Bugs & Suggestions / Memory leak in WString / TextString Library? on: May 06, 2009, 09:09:04 am
I recently started using the WString.h library for string manipulation as it greatly simplifies many of the difficulties.  My latest project was working perfectly until I added WString.  Basically, it was going bonkers after the same number of loops.  I thought I may have simply run out of space, and switched to a 328.  The problem persisted!  It did however, make it a few more loops so memory seemed to be the likely cause.  Basically I tracked it back to something with WString, but I'm not quite sure what.  I was able to make a small example sketch that locks up.

Code:
#include <WString.h>

//Program Variables
String lineBuffer = String(50);
int i = 0;

void setup()
{

  Serial.begin(9600);

}

void loop()              
{

  lineBuffer = " This_Is_A_Test!!";
  lineBuffer.append(i);
  lineBuffer.append("00.00  ");
  Serial.println(lineBuffer.substring(1, 17));
  Serial.println(lineBuffer.substring(17, 23));
  delay(10);
  if (i < 9)
    i++;
  else
    i=0;

}

Obviously this should just keep printing over and over, but this is as far as it gets.

Code:
This_Is_A_Test!!

000.00

This_Is_A_Test!!

100.00

This_Is_A_Test!!

200.00

This_Is_A_Test!!

300.00

This_Is_A_Test!!

400.00

This_Is_A_Test!!

500.00

This_Is_A_Test!!

600.00

This_Is_A_Test!!

700.00

This_Is_A_Test!!

800.00

This_Is_A_Test!!

900.00

This_Is_A_Test!!

000.00

This_Is_A_Test!!

100.00

This_Is_A_Test!!

200.00

This_Is_A_Test!!

300.00

This_Is_A_Test!!

400.00

This_Is_A_Test!!

500.00

This_Is_A_Test!!

600.00

This_Is_A_Test!!

700.00

This_Is_A_Test!!

800.00



h0

This_Is_A_Test!!

hh00.0

This_Is_A_Test!!

000.00

This_Is_A_Test!!

100.00

This_Is_A_Test!!

200.00

This_Is_A_Test!!

300.00

This_Is_A_Test!!

400.00

This_Is_A_Test!!

500.00

This_Is_A_Test!!

600.00

This_Is_A_Test!!

700.00

You can also see that there is some strange characters in there.

Any help is greatly appreciated.
38  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: LiquidCrystal's setCursor bugs on: October 27, 2009, 08:20:45 am
Did you remember to put lcd.begin(16,2); in your setup?
39  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Ethernet Library Bug :: No Repeated Connections... on: January 26, 2009, 01:18:39 am
Good to hear hank.  Good luck!  smiley-grin
40  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: My i/o pins (0-5) are having Opposite Day... on: March 01, 2009, 03:56:58 am
Can you post your code and some more information about what you are trying to accomplish?  Do you actually have all of your hardware hooked up when you are getting the strange results?
41  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Bug in Ethernet Library in new Arduino 0013 on: February 24, 2009, 09:15:55 am
What are you using to connect to the Arduino?  What exactly are you wanting it to do?

I'd try getting rid of that client.stop();

Seeing the rest of your code and knowing more about what you want to accomplish may help.
42  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Bug in Ethernet Library in new Arduino 0013 on: February 24, 2009, 12:01:05 am
How much time between connections?  Can you post your code?
43  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Bug in Ethernet Library in new Arduino 0013 on: February 10, 2009, 01:37:53 am
Hi,

I tested kmm's fix and it seemed to do the trick.  But I was still having a problem my TCPListener program not receiving any subsequent messages because it still thought the first connection was open.  I was able to get around this by adding a client.stop() after sending a message.  Looking at it now it's probably better to use the client.connected() to see if you are still connected rather than creating a new connection each time.  It may still be a good idea to add:

Code:
 if (connected())
    stop();

or maybe:

Code:
 if (connected())
    return 1;

to the begining of uint8_t Client::connect() in client.cpp?  What do you guys think?

I went ahead and modified the library to be compatible with Sanguino.  It tested fine with the modifications on both Arduino and Sanguino.

Good catch kmm!

Thanks guys.
44  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Bug in Ethernet Library in new Arduino 0013 on: February 08, 2009, 03:31:54 pm
I made the change, but it still hangs on the second connection.
45  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Bug in Ethernet Library in new Arduino 0013 on: February 07, 2009, 04:32:54 pm
I am having the same issue.  It hangs the Arduino completely on the second connection attempt.  Here is the code I am using:

Code:
#include <Ethernet.h>

// network configuration.  gateway and subnet are optional.
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 192, 168, 1, 178 };
byte server[] = { 192, 168, 1, 54 };

Client client(server, 13000);

long timerX = 31000;

void setup()
{
  // initialize the ethernet device
  Ethernet.begin(mac, ip);
  Serial.begin(9600);
  Serial.println("Ethernet ChatServer Online");
}

void loop()
{
  if (client.available())
  {
    while (client.available())
    {
      char c = client.read();
      Serial.print(c);
    }
  }
  
  long currentTime = millis();

  if (abs(currentTime - timerX) > 10000)
  {
    Serial.println(timerX);
    if (client.connect())
    {
      client.println("Arduino Rocks!");
      timerX = millis();
      Serial.println("Client Message Sent");
    }
  }
}

Here is what I get back in the serial monitor:
Code:
Ethernet ChatServer Online

31000

Client Message Sent

ARDUINO ROCKS!

647

I have a simple tcplistener running on my computer that echoes back whatever it receives.  As you can see it works on the first attempt and is about to attempt again after the 647.  But, that is it, nothing happens after that.  If the connect failed it should keep spitting out 647 until it connects because that value is not reset until a connection is made.  So it seems the Arduino simply hangs at that point.
Pages: 1 2 [3] 4 5 ... 25