|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Chris Anderson
|
Apr 24, 2007 - 11:39 AM
|
I get a crash with the StyleEditor sample when MenuInfoLoadAccelTable is invoked. Could you please confirm if this an issue with customization? I am using a MBCS build of Prof UIS dll.
|
|
Chris Anderson
|
May 1, 2007 - 4:23 PM
|
I send the modified StyleEditor sample by mail to reproduce the issue.
|
|
Technical Support
|
May 2, 2007 - 8:26 AM
|
Thank you for the project. We reproduced the problem. But we are not sure that the problem has to do with Prof-UIS. If you search for new ACCEL in ../Prof-UIS/Src/ExtCustomize.cpp, you will find 3 lines like as follows: LPACCEL pAccelArray = new ACCEL[ nCount ]; If you replace [ nCount ] with [ nCount + 2 ] in all 3 cases and remove the state data from the registry, the sample will run successfully. The pAccelArray array is used in Win32 accelerator API invocations in all 3 cases and we have no idea why this memory block becomes corrupted if it is allocated with the correct size and 1-byte alignment. Finally we would recommend you roll back to the default settings to avoid potential problems in the future.
|
|
Chris Anderson
|
Apr 30, 2007 - 10:11 AM
|
Were you able to reproduce this issue?
|
|
Technical Support
|
May 1, 2007 - 1:23 PM
|
Actually not. To resolve this issue, would you modify the project settings so it crashes and send this project to us so we can figure out what’s wrong?
|
|
Chris Anderson
|
Apr 25, 2007 - 12:27 PM
|
I cleared the registry and still getting the crash. Could you modify the StyleEditor sample with the settings I mentioned above and try it out?
|
|
Technical Support
|
Apr 25, 2007 - 12:03 PM
|
You may need to clear up the registry state of your application to let the accelerators be loaded correctly instead of loading the previous saved state.
|
|
Chris Anderson
|
Apr 25, 2007 - 9:32 AM
|
I built MBCS Debug build of Prof UIS DLL with the Struct Member alignment set to "1 byte" and calling convention as "__stdcall". These are the settings I need for my application. I confirmed that the crash doesnt happen with the MBCS build with default settings. Could you please look at the issue and confirm?
|
|
Technical Support
|
Apr 25, 2007 - 12:08 PM
|
There should not be any problem with a custom structure alignment applied to the Prof-UIS code. Just make sure the same byte alignment is used in Prof-UIS as in your application.
|
|
Technical Support
|
Apr 25, 2007 - 3:58 AM
|
We have not encountered this. Please let us know if you modified the StyleEditor in some way?
|
|