Santiago, for your task - use only EVT_APPLICATION_START method.
Please check what's inside EVT_APPLICATION_ FREE.
There is no any parameters in EVT_APPLICATION_ FREE methor - that's why you've got an error.
But there is all you need in EVT_APPLICATION_START method