Hi Johan,
I have noticed that this issue has been raised in to previous posts. In both cases no solution was proposed.
Is multithreaded programing with Gapidraw on Symbian possible. Please could you be kind enough to post a little demo as you did here for another platform:
http://www.pocketmatrix.com/forums/view ... ace+thread
Here is what I have tried. In the InitInstance method:
[code]
TInt CMyApplication::Init(TAny *aPtr)
{
CTrapCleanup* cleanupStack = CTrapCleanup::New();
if (cleanupStack != NULL)
{
CMyApplication *engine = static_cast<CMyApplication*>(aPtr);
CGapiSurface* gsBigThumbnail = new CGapiSurface(engine->m_pGapiDraw);
_TCHAR szPath[MAX_PATH];
_tcscpy(szPath,_T("E:\\Images\\1.bmp"));
HRESULT hr = gsBigThumbnail->CreateSurface(GDSURFACE_CLEAR, szPath);
delete gsBigThumbnail;
delete engine;
}
delete cleanupStack;
cleanupStack = NULL;
return KErrNone;
}
My phone Nokia 6630 resets itself after the CreateSurface method so I can't even get what the return value is. I am using Symbian V7.0. The ErrRd file suprisingly has no error code placed in it either. Please help. Really desperate.
Dynz
I have noticed that this issue has been raised in to previous posts. In both cases no solution was proposed.
Is multithreaded programing with Gapidraw on Symbian possible. Please could you be kind enough to post a little demo as you did here for another platform:
http://www.pocketmatrix.com/forums/view ... ace+thread
Here is what I have tried. In the InitInstance method:
- Code:
iProcessPhotos.Create( _L("ProcessPhotos") ,Init, 1024, 1024*1024, 1024*1024*2,this);
iProcessPhotos.Resume();
[code]
TInt CMyApplication::Init(TAny *aPtr)
{
CTrapCleanup* cleanupStack = CTrapCleanup::New();
if (cleanupStack != NULL)
{
CMyApplication *engine = static_cast<CMyApplication*>(aPtr);
CGapiSurface* gsBigThumbnail = new CGapiSurface(engine->m_pGapiDraw);
_TCHAR szPath[MAX_PATH];
_tcscpy(szPath,_T("E:\\Images\\1.bmp"));
HRESULT hr = gsBigThumbnail->CreateSurface(GDSURFACE_CLEAR, szPath);
delete gsBigThumbnail;
delete engine;
}
delete cleanupStack;
cleanupStack = NULL;
return KErrNone;
}
My phone Nokia 6630 resets itself after the CreateSurface method so I can't even get what the return value is. I am using Symbian V7.0. The ErrRd file suprisingly has no error code placed in it either. Please help. Really desperate.
Dynz