Re: [Sdcc-user] Error_pointer

2011-10-13 Thread roelof 't Hooft
On Thu, 2011-10-13 at 13:32 +0530, Sujata Biradar wrote: > Hi, > If you know any answers tell me , don’t tell any thing else.. With out starting a flame war here I will tell you this : You come here on this forum and ask a question about a shitty piece of not documented code which is full of erro

Re: [Sdcc-user] Error_pointer

2011-10-13 Thread Edwin van den Oetelaar
1:01 PM > To: sdcc-user@lists.sourceforge.net > Subject: Re: [Sdcc-user] Error_pointer > > Hi, > > I should know better than to respond to this message, > can't help myself :-) > > Did you read the "how to ask questions" page yet ? > (as mentioned in a previous me

Re: [Sdcc-user] Error_pointer

2011-10-13 Thread Sujata Biradar
Hi, If you know any answers tell me , don’t tell any thing else.. -Original Message- From: roelof 't Hooft Sent: Thursday, October 13, 2011 1:01 PM To: sdcc-user@lists.sourceforge.net Subject: Re: [Sdcc-user] Error_pointer Hi, I should know better than to respond to this me

Re: [Sdcc-user] Error_pointer

2011-10-13 Thread Edwin van den Oetelaar
What you do here is very dangerous. You read some bytes from a rs485 and based on these bytes try to overwrite memory in your device without any checks. Any glitch in your serial line will corrupt your device in a most horrible way. Also the logic is strange, the check if (RS485_RX_BUFFER[4]==0) d

Re: [Sdcc-user] Error_pointer

2011-10-13 Thread roelof 't Hooft
Hi, I should know better than to respond to this message, can't help myself :-) Did you read the "how to ask questions" page yet ? (as mentioned in a previous message) On Thu, 2011-10-13 at 12:40 +0530, Sujata Biradar wrote: > unsigned char xdata RS485_RX_BUFFER[48]; > unsigned char xdata RS4