Page 10 of 10
Posted: Mon Oct 19, 2009 12:47 pm
by vickyg2003
When adding the 7940 to IRTool, I used IR to look up the signature, and I got my elusive "Access Violation @ 0045870C in module ir.exe 00000048" IR 8.01 RC6. Again I have no idea where I was in IR, it was just open so I went over an did a select. Ususally I get my Access Violation when downloading.
Interesting, this time, I only had 1 copy of IR open, and even though it LOOKS like its changed remotes, all the key codes are screwed up. I'll download the latest and greatest, and keep looking for the cause.
Posted: Mon Oct 19, 2009 3:24 pm
by vickyg2003
I downloaded the new IR8 and have beat on it and finally I found a way to reproduce the error! Open an IR file that has a device upgrade. Switch to the DEVICE Tab. Move the cursor on the device layout down to about key 8, then do a FILE->NEW->Select and change remotes. You'll get the error and then IR will start to misbehave.
Posted: Tue Oct 20, 2009 1:46 am
by mathdon
Thanks, Vicky. Now that it is reproducible I should be able to crack it. I'll look into it.
______________
Graham
Posted: Thu Oct 22, 2009 2:24 am
by mathdon
vickyg2003 wrote:I downloaded the new IR8 and have beat on it and finally I found a way to reproduce the error! Open an IR file that has a device upgrade. Switch to the DEVICE Tab. Move the cursor on the device layout down to about key 8, then do a FILE->NEW->Select and change remotes. You'll get the error and then IR will start to misbehave.
I have tracked the source of this Access Violation error. I hope it is the only one!
The root cause is selecting a row on the KeyMap grid on the Devices tab. I seem to have accidentally changed the MouseDown event handler for that grid to the wrong one. As a result, this corrupts the internal data arrays that hold information about the ToolBar. Any following action that causes the ToolBar to be reset, such as doing a File->New, will cause the error. Making any change of options that cause buttons to be added or removed from the ToolBar, such as selecting Advanced/Enable Raw Download, will also cause it.
It seems to happen only if you select row 3 or higher on the KeyMap grid, selecting rows 1 or 2 seem to cause an oddity in the selection process itself.
Since this is an unusual combination of circumstances, I intend to wait until there is greater need for a revised version. Now that IR 8.01 is fully released, other bugs may also be found that need fixing.
________________
Graham