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

Scan image dialog is non-modal in x64 apps #1272

Open
papeh opened this issue Jul 7, 2023 · 1 comment
Open

Scan image dialog is non-modal in x64 apps #1272

papeh opened this issue Jul 7, 2023 · 1 comment

Comments

@papeh
Copy link
Contributor

papeh commented Jul 7, 2023

Testable in FieldWorks (LT-21465).

  • Compile SIL.Windows.Forms.TestApp for x64 (or include the ImageToolboxControl in some other x64 app)
  • Open the Image Toolbox and click Scanner
  • Click a window other than the Scanner dlg
    Expected: the Scanner dlg flashes and is focused
    Actual: the Scanner dlg disappears behind all other windows

This is not a problem in Any CPU or x86 apps using the x86 Interop.WIA.dll. It may be a problem with the MSIL Interop.WIA.dll

@papeh papeh self-assigned this Jul 7, 2023
@papeh
Copy link
Contributor Author

papeh commented Jul 10, 2023

Perhaps a proper x64 DLL would fix this. Instructions to generate Interop.WIA.dll (from #1256):

  • Add a COM reference to Microsoft Windows Image Acquisition
  • Set Embed=false
  • Copy generated assembly from the output into the lib folder
  • Remove the COM reference

@papeh papeh closed this as completed Jul 10, 2023
@papeh papeh reopened this Jul 10, 2023
@papeh papeh removed their assignment Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant