Implementing overloaded function stops processing.

I am trying to learn function overloading and not sure why this does not work .
The code snippet is the only real code in setup, I have commented out most of the other function calls.
I am using two overloaded functions 

Here are the definitions

bool DebugPrintNew ( char * Print, char*  Value )
bool DebugPrintNew ( char * Print, int Value )

AS soon as the the function with overloaded parameters  char * Print, int Value gets  coded 
the program stops. And it does not have to be used to cause this behavior. 
Both functions work as expected when coded separately.
Personally I do not see any advantage using overloaded functions as far as memory saving and have no problem having functions with different names. 

[b]But for learning purpose  I sure would like to know what is going on. [/b]


#ifdef DEBUG_SERIAL
  Serial.println("test DEBUG_SERIAL");

  char *Print = "Test Print ";
  char *Value = "Test Value ";
  DebugPrintNew(Print,Value); // passing char* s

  /* 
STOP  
  int iValue = 12345;
  DebugPrintNew( Print,iValue); // passing char* and iValue 

  STOP   
 */
 
    for(;;);
#endif


return;

{

    for(;;);

By over loading is not intended to save memory.

Mark

Maybe sort out the tags?

holmes4:

    for(;;);

By over loading is not intended to save memory.

Mark

Thanks Mark.
I guess since these functions do pretty much same except handle different parameter type it does not improve memory usage.
I may chop it up and replace common code with functions later.

As far as for(;;); goes - that is the poor man brake point I use.
.

Maybe sort out the tags?

  for(;;); Stops your code dead, what kind of ICE are you using?

Mark

holmes4:
  for(;;); Stops your code dead, what kind of ICE are you using?

Mark

I just collect data I need before the for(;;); and output it to LCD. Been working OK.
Just found out if you output more than 16 characters to LCD things for wild.
I thing I 'll try scrolling thru the line characters , just for fun.

And I am getting pretty handy using types conversions in the process.

Tried Serial.print but not having much luck with it especially when I forget to add closing null to character array pointer.

Vaclav

.