Allegro5 with MS Visual Studio 2012 - visual-studio-2012

I've tried to install allegro for my MS Visual Studio 2012. I was fallowing instructions from allegro wiki. Everything succed with compiling example application, but there is one error that i can't find help about. After running application I'm reciving this error: 1.
It says that application wasn't run properly. Do you have any idea why is it? It's my first meet with allegro so I don't have any clue.
Edit:
First my system was missing msvcr120d.dll so I've downloaded them and put in Windows\System32 and then I've recived this error.
Error message says: "Application wasn't properly launched (0xc000007b). Click OK button to close application."
What MS Visual Studio says: "Unhandled exception at 0x7779E052 (ntdll.dll) in Allegro1.exe: 0xC000007B: Program %hs isn't dedicated to launch in system Windows or contains error."

Related

How to halt Visual Studio debugger automatically on error on Node.js?

I'm debugging Node.js application on Visual Studio 2015. It works great but there is one issue I find a big time-waster. If my program runs into an error I see the error on the console, but debugger does NOT stop where the error happened. I have to look up the line-number from the console-log then locate that line in the source-code.
It works better when debugging browser-based JavaScript on Visual Studio, the debugger halts whenever an error is thrown, which is REALLY great.
Is it possible to get the Visual Studio debugger to halt when the debugged program running on Node.js throws an error?
You could install the Node.js Tools for Visual Studio and use the Exception settings windows under Debug->Windows. It would throw or catch the Exception.
http://nodejstools.codeplex.com/discussions/538432

Object reference error when installing an extension from visual studio gallery

I uploaded an extension to the visual studio online gallery, but when I install it through visual studio I get this exception at the end of the installation
This error only happens when I install it from visual studio. If I download the vsix and double click it to install, I do not see this error.
Any pointers to why this might be happening? Right now I don't have any way to debug this or get logs for this.
This was due to a bad value in the "Getting started guide" field of the vsixmanifest. I discovered this by attaching the vs debugger to the instance of visual studio that was throwing the error and observing the stack trace (after enabling break when CLR exceptions thrown in the debugger).
This was the exception in the debugger
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Microsoft.VisualStudio.ExtensionManager.Implementation
StackTrace:
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerWindow.NavigateToGettingStartedGuide(Uri gettingStartedGuideUri)

Unable to attach to the crashing process. The correct version of pdm.dll is not registered

In my Visual Studio 2012, all of a sudden the javascript debugger stopped working. I tried the following options and nothing worked.
a. Repair Visual Studio 2012
b. Added 'debugger' in javascript file and it throwed the follow message,
"Unable to attach to the crashing process. The correct version of pdm.dll is not registered. Repair your Visual Studio installation, or run 'regsvr32.exe "%CommonProgramFiles%\Microsoft Shared\VSDebug\pdm.dll"'
Please advise how to proceed further. My system configuration is,
Windows 7 64 bit
IE 8
Visual Studio 2012 premimum.
Thanks in advance,
Vim

Visual Studio 2012 unable to activate Windows Store App

Yesterday while I was working on my Windows 8 App in Visual Studio I ran into an error in Visual Studio:
Error: Unable To Activate Windows Store App "ff82Aa95f-51e3-4869-a77a-7a9f52af3aea_aqtq9fhtdt8n6!APP" The WWAHOST.exe Process Started But The Acivation Proccess Failed with Error: "Access is Denied.
How can I resolve this?
To solve this, double-click manifest file and select Packaging tab you will find Package identity there.
By changing the package identity little bit your app will start to work fine.I have this problem too sometimes. Actual cause I don't know. But it works every time for me.
If original package identity is this "ff82Aa95f-51e3-4869-a77a-7a9f52af3aea_aqtq9fhtdt8n6" then change it to "ff82Aa95f-51e3-4869-a77a-7a9f52af3aea_aqtq9fhtdt8n7" here i have only change last digit 6 to 7.

VS2012 missing compiler errors in error list after upgrade from vs2010

Just upgraded to Visual Studio 2012, connected to my TFS solution, upgraded all the projects from v4.0 to v4.5. Solution compiles and runs fine. Super.
Now I'm adding new code but compiler errors are not listed in the Error List output window. I only see errors related to .dll files not being found.
e.g. Error 1 Could not copy the file "C:\SourceCode\<snip>Library.dll" because it was not found. C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets
Well of course it can't be found, I put the line:
thing bob = new thing();
into a class.
Unfortunately this error is not reported during compilation.
Even the detailed comiler output shows nothing after the csc.exe task:
6>Task "Csc"
6> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe <snip>
6>Done executing task "Csc".
If I run the csc.exe task in a cmd window you can clearly see the exception:
Microsoft (R) Visual C# Compiler version 4.0.30319.17929
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.
State\ConditionalAction.cs(16,13,16,18): error CS0246: The type or namespace name 'thing' could not be found (are you missing a using directive or an assembly reference?)
State\ConditionalAction.cs(16,29,16,34): error CS0246: The type or namespace name 'thing' could not be found (are you missing a using directive or an assembly reference?)
Has anyone seen this problem before or have any ideas?
EDIT more evidence
It seems that 'hard' compile errors are being reported i.e. by removing the semi-colon from the line of rubbish gives me a compiler error:
thing bob = new thing()
Error 2 ; expected C:\\ConditionalAction.cs 16
The error to do with the missing type, however, is still not present.
EDIT 2 more evidence
It appears that VS 2012 is unable to correctly identify that the project has an error with the missing type when starting to run and debug the MVC app (F5).
I just removed the offending code, ran the app, re-inserted the offending code, re-ran the app and VS merrily ran the previously-compiled version of the application without complaint.
I have had problems with visual studio, when upgrading to visual studio professional 2012.
Firstly, checking fundamentals.
Are you using the computer as a user with Administrative rights?
I suspect you are, but if not, you need to have administrative rights.
Have you checked if any files are being blocked by your firewall?
When I switched to the full version of Avast I find I have to disable the File System Shield It loves to remove my executable files when I try to run my visual studio projects.
Ensure you are creating your projects in 4.5 Framework.
What I did, was I ended up uninstalling EVERYTHING that was associated with both Visual Studio downloads. If you are able to remove and save your project files elsewhere and then bring them back. Go through all your program files to see if there is anything hidden in the wrong folder and check your C drive.
Which meant downloading and reinstalling (fresh):
Install Windows 7 Service Pack 1
Visual C++ 2012 Redistributable Package (arm.exe, x64.exe and x86,exe)
Microsoft .NET Framework 4.5
Microsoft Visual Studio 2012 SDK
Please read this quote from MSDN about Visual Studio 2012 update 3
Note Visual Studio and Team Foundation Server (TFS) installation
mechanics are different. The Visual Studio update installs on top of
whatever is already installed on the computer. The TFS update is a
full layout that replaces whatever is installed on the computer.
Before you try to apply the TFS update, make sure that you have a full
backup of your current databases. If the TFS update installation
fails, you will be unable to restart the update or roll back to the
earlier version of TFS without performing a restore procedure.
Go to this page for more information about the Visual Studio 2012 Update 3.
Here is also useful link Configuring Programs for 64-Bit (Visual C++).

Resources