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

Developer

Forums

Forums:

Hey all.

The part my app fails on is when it redraws the HTMLViewer. In my HTMLViewer callback fn, I receive the code HVN_FOCUS(4) and redraw the HTMLViewer as is necessary. Most of the time this works, but on occassion (sometimes after 6k key events sent in the grinder), it decides it doesn't like this anymore.

The exception I'm capturing is:

First-chance exception at 0x0047028b in BREW_Emulator.exe: 0xC0000005: Access violation reading location 0x0000000c.

I've searched through my code for weird strings, any of the code that might access any of those addresses to no avail. Is this a problem with the Emulator/Emulator and Grinder working together?

Another thing to keep in mind is if I comment out the code that will redraw the HTMLViewer in the callback fn, I have other places in my code that will redraw the HTMLViewer and they will now crash. I get the same exact exception every time.

Make sense?

To make sure it's not the HTML I'm displaying, I've copied that into a file and have tested it out, and it displays without errors.

As of now, the Grinder is not used in app testing, but I would like to iron this bug out (if it is indeed fixable on my part).

Thanks for any help.
Orion