Any idea what might be causing said "Debug Assertion Error"
This function will convert the incoming number arguments to string, format them and then store them in "data".
Code:
IOLineEdit& IOLineEdit::operator=(double number){
char theFormat [20]="%";
strcat (theFormat, format);
strcat (theFormat, "lf");
sprintf((char*)data,theFormat,number);
return *this;
}
format is a public member which holds the format of any number
for instance it will hold .2
data is a void* from my parent class
I get the "Debug Asserion Error" on the sprintf line. In the dialogue box the expression says "(STRING!=NULL)".
Appreciate any help.