emulator crashes | developer.brewmp.com emulator crashes | developer.brewmp.com

Developer

emulator crashes

Forums:

hi!!

i have brew sdk 2.1.0 installed on my machine...
i have written an application in 2.1.0.. it was working fine on the emulator till now...

but now.. when i load the application from the emulator.. the emulator crashes immediately.. i debuged the application and found that the application is crashing at the AEEClsCreateInstance for the application itself...

what could the problem be...

pls help me.. its urgent...

thnks in advance
pribhi.

which line in AEEClsCreateInstance is it crashing on??paste it....

which line in AEEClsCreateInstance is it crashing on??paste it....

Did you install any other versions of the SDK recently? Your BREWDIR environment variable might have gotten changed...

Did you install any other versions of the SDK recently? Your BREWDIR environment variable might have gotten changed...

hi!
the emulator crashes at the very first line ie. GZAPP * pApp =NULL;
int AEEClsCreateInstance(AEECLSID ClsId,IShell * pIShell,IModule * po,void ** ppObj)
{
MyApp * pApp = NULL;
if(!AEEApplet_New(sizeof(GZApp), ClsId, pIShell,po,(IApplet**)ppObj,(AEEHANDLER)MyApp_HandleEvent,(PFNFREEAPPDATA)MyApp_FreeAppData))
return ENOMEMORY;
pApp = (MyApp *)*ppObj;
if(!MyApp_InitAppData(pApp)) {
*ppObj = NULL;
return EFAILED;
}
return (AEE_SUCCESS);

also i havent installed any new versions of the sdk... one more thing ... all my earlier applications are running but not the current one which also used to run properly ... also same is the problem with any new application created using MVC98 with BREWwizard..
hope we find a solution for this problem soon...
its really urgent...
thks
pribhi.

hi!
the emulator crashes at the very first line ie. GZAPP * pApp =NULL;
int AEEClsCreateInstance(AEECLSID ClsId,IShell * pIShell,IModule * po,void ** ppObj)
{
MyApp * pApp = NULL;
if(!AEEApplet_New(sizeof(GZApp), ClsId, pIShell,po,(IApplet**)ppObj,(AEEHANDLER)MyApp_HandleEvent,(PFNFREEAPPDATA)MyApp_FreeAppData))
return ENOMEMORY;
pApp = (MyApp *)*ppObj;
if(!MyApp_InitAppData(pApp)) {
*ppObj = NULL;
return EFAILED;
}
return (AEE_SUCCESS);

also i havent installed any new versions of the sdk... one more thing ... all my earlier applications are running but not the current one which also used to run properly ... also same is the problem with any new application created using MVC98 with BREWwizard..
hope we find a solution for this problem soon...
its really urgent...
thks
pribhi.

You've used Myapp at all places as a pointer to app and GZApp pointer to determine the size of the applet!
Also, I cant find GZApp *pApp = NULL in this source code.

You've used Myapp at all places as a pointer to app and GZApp pointer to determine the size of the applet!
Also, I cant find GZApp *pApp = NULL in this source code.

hi!
sorry it was a mistake... instead of writing MyApp * pApp = NULL .. i wrote GZApp * pApp =NULL in the previous post..
in my application it is MyApp * pApp = NULL;
the problem is still not solved..
pls help..
thnks n regards
pribhi

hi!
sorry it was a mistake... instead of writing MyApp * pApp = NULL .. i wrote GZApp * pApp =NULL in the previous post..
in my application it is MyApp * pApp = NULL;
the problem is still not solved..
pls help..
thnks n regards
pribhi

i think the second line our u r code must be in this condition.......
if(ClsId == AEECLSID_MYAPP)
{

something like
if(ClsId == AEECLSID_RAASHI)
{
if(! AEEApplet_New(sizeof(Raashi), ClsId, pIShell,po,(IApplet**)ppObj,
(AEEHANDLER)Raashi::HandleEvent,Raashi::FreeApp))
{
if(! Raashi::InitApp((IApplet*)*ppObj))
return (EFAILED); }
}
return (AEE_SUCCESS);
its a sample of My applications AEECreateInstance.....

i think the second line our u r code must be in this condition.......
if(ClsId == AEECLSID_MYAPP)
{

something like
if(ClsId == AEECLSID_RAASHI)
{
if(! AEEApplet_New(sizeof(Raashi), ClsId, pIShell,po,(IApplet**)ppObj,
(AEEHANDLER)Raashi::HandleEvent,Raashi::FreeApp))
{
if(! Raashi::InitApp((IApplet*)*ppObj))
return (EFAILED); }
}
return (AEE_SUCCESS);
its a sample of My applications AEECreateInstance.....