We help IT Professionals succeed at work.

Visual Studio 2013 executables run in Windows 8.1 but not in Windows 10

Jorge Maldonado
on
111 Views
Last Modified: 2017-08-02
I have a Visual Studio 2013 solution with 2 C++ projects that implement Windows Sockets, one is the Client and the other is the Server. The Server is listening to a port and the Client asks to type something. When I type a message in the Client, it appears in the Server. I have performed this test in a Windows 8.1 PC. However, if I run this same executables in a Windows 10 PC, everything fails; what I type in the Client does not appear in the Server and the Client gets kind of frozen. Both Windows 10 and Windows 8.1 PCs have VS2013 installed. They are, in fact, 2 Windows 10 PC and 2 Windows 8.1 PCs, all of them  with VS2013 installed. I tested in all of them. Also, I have compiled in Windows 8.1 and Windows 10 PCs.

I will very much appreciate any clue about how to solve this issue. It is very important and urgent to get a solution as soon as possible.

I wonder if you need the code to try it yourself.

Respectfully,
Jorge Maldonado
Comment
Watch Question

Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
Change the target build option to Any CPU and check.
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
For both the project change the configuration property change as said above.

Author

Commented:
I have been searching "target build option" in VS2013 but I do not find where to set it.
I kindly ask you to provide feedback.

Best regards.
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
FYI: I don't have VS 2013. But hope it will help.

Do not select Solution. Select your project. This is very important.
Select Project Property->Configuration Property->Linker->Advanced->Target Machine

You can choose  X86 if you have 32-bit dependencies.

Author

Commented:
These are the options I find.

Prjoject properties
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
Yes try for X86/X64
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
Also choose configuration as Release.
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
if I run this same executables in a Windows 10 PC, everything fails; what I type in the Client does not appear in the Server and the Client gets kind of frozen.

Can you keep some logs and debug it? Where exactly it hangs? Which function is doing so?
Keep logs in both sender(Client) and receiver(Server) side.
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
I have compiled in Windows 8.1 and Windows 10 PCs.
After compiling in Win 10, is it working in Windows 10?
You can directly keep break point and do a step by step debugging and check the problematic area.

Author

Commented:
I compiled in both Windows 8.1 and Windows 10 and the executbles do not run in Windows 10, only in Windows 8.1

Regards.
Software Engineer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Subrat (C++ windows/Linux)Software Engineer
CERTIFIED EXPERT

Commented:
Have you done a clean build?

Author

Commented:
Issue was solved after finding some information while debugging the code.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.