Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/30/06 10:37
Read: times


 
#121339 - Address Space Overflow?
Im using Keil uVision compiler and upon compiling this code :



.
.
.
char LCD_Buffer[sizeof("xx.xx")]; //Where xx.xx is arbitrary decimal number
float test;

.
.

test = 12.34;
sprintf(LCD_Buffer, "%0.2f", test);
LCD_Print(LCD_Buffer);

.
.



Whenever i try using the command "sprintf" to the array LCD_Buffer it will give me Address Space Overflow error as stated below and i dont know why. When i removed the sprintf, it's working fine. I managed to compile it yesterday and when i try again today it doesnt works anymore. I dont understand why, can some please explain to me?

*** ERROR L107: ADDRESS SPACE OVERFLOW
SPACE: DATA
SEGMENT: ?DT?FYP3
LENGTH: 0064H

List of 2 messages in thread
TopicAuthorDate
Address Space Overflow?            01/01/70 00:00      
   Data space            01/01/70 00:00      

Back to Subject List