Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AccessViolationException when using RibbonDropDownColorPicker in 64-bit #2

Open
ThomasHaberl opened this issue May 12, 2017 · 0 comments
Assignees
Labels

Comments

@ThomasHaberl
Copy link

Assigning an array of strings to the RibbonDropDownColorPicker.ThemeColorsTooltips property will cause an AccessViolationException when the application is executed as a 64-bit process. The exception occurs in line 640 of ColorPickerPropertiesProvider.cs, the call to UIRibbonFramework.SetUICommandProperty() in said property.

It can be reproduced with the following sample project:
RibbonLib.Sample.zip

This project is based on sample "11 - DropDownColorPicker" of the original Windows Ribbon for WinForms (https://windowsribbon.codeplex.com/). The only relevant change was that I disabled the "Prefer 32-bit" option in the project's properties. The original implementation has the same problem. It seems like array pointers in the PropVariant structure are marshalled incorrectly in 64-bit scenarios.

@ennerperez ennerperez self-assigned this Jan 24, 2018
@ennerperez ennerperez added the bug label Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants