Zbierka chyb

Dost neprijemne chyby co sa casom nasli. Niektore po 2 rokoch nasadenia :)

void EBl::event_VolumeOk (EUI_HW::EVolumeType , unsigned int )
{
    ETRACE0("Save volume");
    char cVolInter, cVolExter, cVolExter2;
    bool ret;
    if(ret == FALSE)
    {
	return;
    }
 
    //unsigned char cChannel;
 
    cVolInter  = (unsigned char)m_pUi->wVolume->GetWin()->GetVolumeLevel(FormSet::InternalVolume);
    cVolExter  = (unsigned char)m_pUi->wVolume->GetWin()->GetVolumeLevel(FormSet::ExternalVolume);
    cVolExter2 = (unsigned char)m_pUi->wVolume->GetWin()->GetVolumeLevel(FormSet::External2Volume);
 
    GetEBlUserConfigStorage()->setVolumeInter(cVolInter);
    GetEBlUserConfigStorage()->setVolumeExter(cVolExter);
    GetEBlUserConfigStorage()->setVolumeExter2(cVolExter2);
    GetEBlUserConfigStorage()->save();
    GetEDeviceCtl()->GetAppEUdalostZvuk()->App_SetVolume(cVolInter,cVolExter,cVolExter2);
    GetUi()->wVolume->hide();
}
void EPlayerDriver::SetChannels(unsigned char uchCannels)
{
        if (m_bIsExtAmpInited)
        {
                if (m_pErs485Bus != NULL)
                {
                        uchCannels = (uchCannels >> 1);
                        // v extampe su kanaly 1 a 2 bSucessfull ale, v nastavovani kanalov oneeho, lokalneho playera su to 2 a 3 bit.
 
                        long err,i;
 
                        Tx_buff_u0[0] = 'M';
                        Tx_buff_u0[1] = uchCannels;
 
                        long len = 2;
 
                        for ( i=0; i < 5 && err != 0; i++ )
                        {
                                err = m_pErs485Bus->Write(m_ucAddress,Tx_buff_u0,(unsigned long*)&len,100);
                                if (err >= 0 )
                                {
                                        EERROR(" Error: EExtAmpDriver::SetChannels timeout");
                                }
                        }
 
                        if (Tx_buff_u0[0] != CON_ACK)
                        {
                                ETRACE2("nastavenie kanalov %d prebehlo NEUSPESNE %d", uchCannels, Tx_buff_u0[0] );
 
                                SendMessage(MSG_EXTAMP_STATUS,(void*)DEVST_ERROR);
 
                        }
                        else
                        {
                                ETRACE("nastavenie kanalov %d prebehlo USPESNE", uchCannels );
                        }
                }
        }
}
	std::string  GetPathCp()
	{
		string a;
		...
		return a; 
	}

a pouzitie (dolezite je aj to c_str)

        char *pathcp = (char*)EPath::GetInstance()->GetPathCp().c_str();
        char *pathStat = (char*)EPath::GetInstance()->GetPathStat().c_str();
  	EData::GetInstance()->init( pathcp ,pathStat);