Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:54:14+00:00 2026-06-13T13:54:14+00:00

My friend just sent me a VS2010 project with 2 solutions in it: one

  • 0

My friend just sent me a VS2010 project with 2 solutions in it: one with one CPP file and the other solution with a C# WPF project (one XAML and one CS). Everything is working fine on his computer with VS2010. When he builds and executes the project, the main XAML window shows up as supposed.

When I try to do the same with VS2012 on my computer, I have no problem building the project. However, when I run it, nothing happens. I added some breakpoints into the C# code and I realized that the code runs, but the window never shows up. So, as soon as the code has been executed, the app just quits instead of waiting for user input within the XAML interface.

I never faced up this problem before, usually going from VS2010 to VS2012 works pretty well. And here again, everything seems to work… except for the XAML window now showing when running the project, which is quite annoying.

Has anyone any idea of what’s going on there? I am probably missing something really fundmental here, but I don’t see any setting in the solution’s or project’s properties that could actually help me to ensure the XAML window runs when I start the project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:54:15+00:00Added an answer on June 13, 2026 at 1:54 pm

    One thing to note is that the 4.5 compiler has changed the semantics of lambdas in foreach loops, so your application may have tripped over this. See here: https://connect.microsoft.com/VisualStudio/feedback/details/732657/c-5-compiler-doesnt-respect-the-semantics-of-the-foreach-range-variable-when-langversion-5

    basically if you had something like this:

    List<Action<int>> actions = new List<Action<int>>();
    foreach (var x in new[] { 10, 20, 30 })
    {
       actions.Add(() => Console.WriteLine("x = {0}", x);
    }
    
    actions.ForEach(a => a());
    

    would give a different result depending on whether it was compiled with 4.0 or 4.5. We kinda tripped over this because our build machine was still 4.0 and we upgraded our development machines to VS 2012.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My friend is working on one part of the project, and I am working
I was just reading an update from a friend's project, mentioning the use of
A friend sent me his threading class. Now I just want to run a
My friend sent me one.app and prologs_adhoc.mobileprovision files. I have been trying for hours
I wrote a program and sent the compiled file to my friend. but after
an artist friend has sent me an .obj file exported by 3DS Max 2009
I've just recently learned about friend class concept in C++ (I've googled around for
I am just curious, I am writing some notes for a friend and am
My friend and I were discussing the other day which style of code is
My friend gave me a database file: record.mdf . I copied that .mdf file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.