Esempio n. 1
0
void eZapSetup::init_eZapSetup()
{
	if(!eSystemInfo::getInstance()->isOpenEmbedded())
	{
		setNrOfBars(1); // var bar
	}

	valign();
	int entry = 1;
	
	addCallableMenuEntry("eZapBouquetSetup", _("Create or edit bouquets"), &entry);
	addCallableMenuEntry("eZapScan", _("Setup and find satellites or scan for transponders"), &entry);
	new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true );
	addCallableMenuEntry("eSystemSettings", _("Change internal settings like time, EPG and debugging settings"), &entry);
	addCallableMenuEntry("eHardwareSettings", _("Change hardware settings like harddisk, USB-stick or keyboard"), &entry);
	addCallableMenuEntry("eInterfaceSettings", _("Change user interface settings like OSD, LCD and languages"), &entry);
	new eListBoxEntryMenuSeparator(&list, eSkin::getActive()->queryImage("listbox.separator"), 0, true );
	addCallableMenuEntry("eEmuConfig", _("Configure the softcam"), &entry);
	addCallableMenuEntry("eSoftwareManagement", _("Install and remove software"), &entry);

	// Set /var text and progress bar
	updateProgressBar();

	CONNECT(list.selected, eZapSetup::entrySelected);
	/* emit */ setupHook(this, &entry);
}
Esempio n. 2
0
        std::cout << "Unexpected memory allocation. Call stack:" << std::endl;
        
        std::cout << StackTrace().toString() << std::endl;

        std::cout << "***************************************" << std::endl;

        RCF_CHECK(0 && "Unexpected memory allocation.");
    }

    if (allocType == _HOOK_ALLOC || allocType == _HOOK_REALLOC)
    {
        ++gnAllocations;
    }

    return pfnOldCrtAllocHook(
        allocType, 
        userData, 
        size, 
        blockType, 
        requestNumber, 
        filename, 
        lineNumber);
}

void setupHook()
{
    pfnOldCrtAllocHook = _CrtSetAllocHook(crtAllocationHook);
}

bool dummy = (setupHook(), false);