CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
384 stars 89 forks source link

Error R6034 on Startup With VC++ 2005 #321

Open ghost opened 3 years ago

ghost commented 3 years ago

Describe the bug

I have a WFP non-packaged app that has dependencies on Visual C++ 2005. When adding any Xaml Islands controls to the main window I get an error during startup that there was an issue loading the C runtime. As soon as the Visual C++ 2005 runtimes (msvcm80.dll, msvcp80.dll and msvcr80.dll) are removed, the app starts up and runs as expected.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Make a non-packaged WPF app
  2. Include msvcm80.dll, msvcp80.dll and msvcr80.dll
  3. Add a Xaml Islands control to the main window

Expected behavior

App should start without error.

Screenshots

image

Environment

NuGet Package(s): 
Microsoft.Toolkit.Wpf.UI.Controls

Package Version(s): 
6.1.2

Project .NET Version:
- [X] .NET Framework (version: 4.7.2)
- [ ] .NET Core 3
- [X] .NET Core 3.1

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [X] 21H1
- [ ] Insider Build (build number: )

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [X] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [X ] 2019 (version: ) 
- [ ] 2019 Preview (version: )

Additional context

Please see the attached reference app for an example of the issue. Reference App.zip

ghost commented 3 years ago

Hello jpgrusling, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost commented 3 years ago

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

michael-hawker commented 3 years ago

FYI @marb2000