Problem passing pointer of own class to another on

Hi

I am using a Tracer class that encapsulate all tracing feature (serial lcd) My Lcd is rebooting when I pass its instance to UltraCmd

LiquidCrystal     lcd(7, 8, 9, 10, 11, 12) ;
SRF02 sonicsensor = SRF02(0x70, SRF02_CENTIMETERS);
FunctionalTasks   FuncTask                 ;
UltrasonCmd           UltraCmd                 ;

// ENTREES 

//
//  SETUP
//

void setup()  { 

      // SERIAL
      Serial.begin(9600); 


      // LCD
      lcd.begin(16, 2);
      lcd.setCursor(0, 0);
      lcd.clear();
      delay(2000);


      PinMng.setTracer(&Tracer);

      // pass lcd to tracer and tracer to all others objects
      Tracer.setLcd(&lcd);
      delay(200);
      // FuncTask.setSonicSensor(&sonicsensor);
      
      // UltraSonic Sensor
      UltraCmd.setSonicSensor(&sonicsensor);
      UltraCmd.setTracer(&Tracer);
      UltraCmd.setDistToOnRelays(80);

UltraCmd class

void UltrasonCmd::setTracer(Traces *TracerPtr) {

      if (  TracerPtr != NULL )
      {
            _Tracer = TracerPtr;
            _Tracer->Print("Tracer is available on UltraCmd instance");
      }
}

I see the trace just above.

      PinMng.setTracer(&Tracer);

Where is Tracer defined? Why do you have a variable with the same name as a class? They should differ in case, at a minimum.

Sorry, it is here.

#include <Wire.h>
#include <LiquidCrystal.h>
#include <DS1307.h> // written by  mattt on the Arduino forum and modified by D. Sjunnesson
#include <SRF02.h>
#include <UltrasonCmd.h>
#include <MemoryFree.h>
#include <QueueList.h>


// extern Traces            Tracer                   ;
Traces Tracer = Traces();

/* Arduino          Lcd 2x16
 *
 * VSS              Pin 1
 * VDD              Pin 2
 * VSS              Pin 3
 * Pin 7            Pin 4
 * VSS              Pin 5
 * Pin 8            Pin 6
 * NA                  Pin 7
 * NA                  Pin 8
 * NA                  Pin 9
 * NA                  Pin 10
 * Pin 9            Pin 11
 * Pin 10           Pin 12
 * Pin 11           Pin 13
 * Pin 12           Pin 14
 * VDD              Pin 15
 * VSS              Pin 16
 *
 *
 */
LiquidCrystal     lcd(7, 8, 9, 10, 11, 12) ;
SRF02 sonicsensor = SRF02(0x70, SRF02_CENTIMETERS);
FunctionalTasks   FuncTask                 ;
UltrasonCmd           UltraCmd                 ;