Success of member function executing depends on return type? [Solved]

Hi fhtrogu

Could the problem be related to the creation of another instance of the lcd object inside the function?

Try changing the function to this, which references the object passed to the constructor.

void Menu::printStatic()
{
	m_lcd->clear();
	m_lcd->setCursor(0,0);
	m_lcd->print(m_line0);
	m_lcd->setCursor(0,1);
	m_lcd->print(m_line1);  
}

Regards

Ray