MOD54515 - not able to upload a program file
Posted: Mon Oct 07, 2013 8:11 pm
				
				Hi,
I have create a mistake in my program. I create a class Controller. In this class, i have create a method Initialize and run like this:
But in the usermain i dont create my object Controller like this:
The usermain is empty.  I don't able to push the correct program in the MOD.  
Anybody have an idea for correct my problem?
Thank you
			I have create a mistake in my program. I create a class Controller. In this class, i have create a method Initialize and run like this:
Code: Select all
void DoorController::Initialize()
{
	InitializeStack();
	if (EthernetIP == 0) GetDHCPAddress();
	OSChangePrio(MAIN_PRIO);
	EnableAutoUpdate();
	StartHTTP();
	EnableTaskMonitor();
	PtrToObjectGlobalWebServerHandler = &WebServerHandler_Object;
	MyPostHandlerRegister(WebServerHandler::MyDoPostWrapper);
}
void DoorController::Run()
{
    while (1)
    {
        OSTimeDly(20);
    }
}Code: Select all
void UserMain(void * pd)
{
   // DoorController DoorControllerMain;
  
    // DoorControllerMain.Run();
}Anybody have an idea for correct my problem?
Thank you