Hi All,
When i run this code for picture capture in client-server where both client and server are residing in the emulator,
TSize screenSize = CEikonEnv::Static()->ScreenDevice()->SizeInPixels();
TDisplayMode displayMode = CEikonEnv::Static()->ScreenDevice()->DisplayMode();
CFbsBitmap*iBitmap = new (ELeave) CFbsBitmap();
User::LeaveIfError(iBitmap->Create(screenSize, displayMode));
TInt err = CEikonEnv::Static()->ScreenDevice()->CopyScreenToBitmap(iBitmap);
the emulator it is showing KERN-EXEC 3 panic
When i debug the problem, the panic is causing at the statement which i have bolded above,
I also found that screenSize that is the height and width are showing both in negitive values,
Can any one help me in solving this problem,
Also, when i run this programm indivudually, it is working fine with out any problems and i could able to capture the picture and store it in phone memory.
Regards,

Reply With Quote

