Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi
My Program terminated unexpectedly. I try to find out the bug using breakpoint. ISHELL_LoadResImage statement is inside a loop. It executes ok for some loops then gives unhandled exception while executing this line.
Please help me solving out the problem.

Thanx
Debendra

Figure out which iteration of the loop is causing the crash and then determine which parameters are invalid.

Figure out which iteration of the loop is causing the crash and then determine which parameters are invalid.

I have used with following parameters
ISHELL_LoadResFile(pMe->pIShell,TEST_RES_FILE,IDI_1);
pMe->pIShell is the pointer to IShell variable,
TEST_RES_FILE is the resource fiel
and IDI_1 is the resource ID.
for some(not certain sometimes 3, sometimes 4 etc.) iteration it works ok.
then it shows the following error message
Unhandled Exception in BREW_Simulator 0xC0000005: Acess Voilation
then while pressing ok the control goes to some assembly language code.
Please suggest me how to debug the error.
thanx
Debendra

I have used with following parameters
ISHELL_LoadResFile(pMe->pIShell,TEST_RES_FILE,IDI_1);
pMe->pIShell is the pointer to IShell variable,
TEST_RES_FILE is the resource fiel
and IDI_1 is the resource ID.
for some(not certain sometimes 3, sometimes 4 etc.) iteration it works ok.
then it shows the following error message
Unhandled Exception in BREW_Simulator 0xC0000005: Acess Voilation
then while pressing ok the control goes to some assembly language code.
Please suggest me how to debug the error.
thanx
Debendra

Does it consistently fail on a certain iteration?

Does it consistently fail on a certain iteration?

It does not fail after a certain iteration. it fails after some arbitary no of iterations.

It does not fail after a certain iteration. it fails after some arbitary no of iterations.

Well, the suggestion stands...debug using VS and figure out where it's crashing and why.

Well, the suggestion stands...debug using VS and figure out where it's crashing and why.