SFML community forums

Help => General => Topic started by: j70141 on March 27, 2008, 05:25:19 pm

Title: Initial Installation Issue - (0xc0150002)
Post by: j70141 on March 27, 2008, 05:25:19 pm
Have installed SFML for Visual Studio 2008 as shown in the instructions.

Put the following program for installation:

Code: [Select]
#include "stdafx.h"
#include <SFML/System.hpp>
#include <iostream>


int _tmain(int argc, _TCHAR* argv[])
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }
return 0;
}


Did the whole link thing listed in the instructions...

Received the following errors during running and compilation:

Quote
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\SFML1\sfml-system.dll for its manifest, ntstatus 0xc0150002
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\SFML1\sfml-system.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\SFML1\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\SFML1\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\SFML1\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
LDR: LdrpWalkImportDescriptor() failed to probe d:\Projects\SFML1\Debug\sfml-system-d.dll for its manifest, ntstatus 0xc0150002


Along with an error for running:

Quote
"The application failed to initialize properly (0xc0150002). Click on OK to terminate the application."


I get the same error when I used sfml-system.dll too.

First time using it... thank for any help.
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on March 27, 2008, 05:36:57 pm
We get this error on the forums at least once every week... ;)

Fast answer : recompile SFML.

For more details : search similar threads on the forum.
Title: Recompile SFML
Post by: j70141 on March 27, 2008, 05:48:10 pm
Quote from: "Laurent"
We get this error on the forums at least once every week... ;)

Fast answer : recompile SFML.

For more details : search similar threads on the forum.


Thank you Laurent, I appreciate your answer.  Truth being, I had been programming a game in Visual Basic when someone mentioned SFML to me and I wanted to try it out to see if it would work better for me.  If it works, I would very likely switch and redo the entire game.

Problem is, my Visual C++ is over 5 years old and I have forgotten quite a bit.  I am literally cracking open a new book to relearn how to use it.

Understanding my situation....  are there any instructions on how to recompile SFML?
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on March 27, 2008, 05:56:46 pm
Quote
Understanding my situation.... are there any instructions on how to recompile SFML?

Sure, in the VC++ tutorial (http://www.sfml-dev.org/tutorials/start-vc.php). But it's nothing more than opening SFML.sln and clicking on the "compile" button.
Title: Advanced Users Only
Post by: j70141 on March 27, 2008, 06:01:45 pm
Quote from: "Laurent"
Quote
Understanding my situation.... are there any instructions on how to recompile SFML?

Sure, in the VC++ tutorial (http://www.sfml-dev.org/tutorials/start-vc.php). But it's nothing more than opening SFML.sln and clicking on the "compile" button.


But it has a sign on the door that says "Advanced Users Only"

Am I allowed in there?

(just kidding)  Thank you for the help.
Title: Still Same Issue
Post by: j70141 on March 27, 2008, 06:34:14 pm
Quote from: "Laurent"
Quote
Understanding my situation.... are there any instructions on how to recompile SFML?

Sure, in the VC++ tutorial (http://www.sfml-dev.org/tutorials/start-vc.php). But it's nothing more than opening SFML.sln and clicking on the "compile" button.


I must be missing something.  I loaded the SFML.sln and clicked on Rebuild.  I looked for the files and found them in the same location as the original files and confirmed the 'modified' date showed that they were new and compiled, except 'sfml-system.dll' and a couple of others.

I put the .dll files in the same folder as the executable.

1st issue is that the sfml-system.dll file still shows an older date on it and I still get the same error.
2nd issue is that when I used the sfml-system-d.dll file (which actually shows the newer modified date on it) I still get the same error too.
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on March 28, 2008, 01:54:20 am
The configuration selected by default should be "Debug static", which means it won't rebuild the DLLs. Rebuild "Debug DLL" and "Release DLL" configurations if you want to use the DLL versions.
Title: Initial Installation Issue - (0xc0150002)
Post by: j70141 on March 28, 2008, 02:43:34 am
Quote from: "Laurent"
The configuration selected by default should be "Debug static", which means it won't rebuild the DLLs. Rebuild "Debug DLL" and "Release DLL" configurations if you want to use the DLL versions.


Still no go.  

I did just notice however that all of the -d files are recompiling and all the regular ones are not.  Is it possible I am working with the wrong file?

ie, I have sfml-system-d, but not sfml-system, and I have sfml-audio-d, but not sfml-audio recompiled.

Any ideas?
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on March 28, 2008, 03:53:17 am
-d are the files built by the Debug configurations, the other are built by the Release configurations.
Title: Initial Installation Issue - (0xc0150002)
Post by: j70141 on March 28, 2008, 04:13:27 am
Quote from: "Laurent"
-d are the files built by the Debug configurations, the other are built by the Release configurations.


Thank you.  It is now working.

For any future newbies....

In Visual Studio 2008:
Click on Project -> Project Properties -> Configuration Manager

Change "Active solution configuration' to Release or some other non-Debug setting.
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on March 28, 2008, 04:22:00 am
... or use the list in the toolbar ;)
Title: Initial Installation Issue - (0xc0150002)
Post by: workmad3 on April 10, 2008, 11:52:09 am
As an extra note on this (from my recent experience :))
I installed SFML yesterday. At the same time I installed VC++2008 express, and attempted to use the pre-built VC2008 SFML binaries. I got this error straight away. Is this a known issue with the pre-built binaries, or was my computer (in dire need of a reinstall anyway) just being odd? :)
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on April 10, 2008, 01:00:36 pm
Which error ?
Title: Initial Installation Issue - (0xc0150002)
Post by: workmad3 on April 10, 2008, 02:25:37 pm
0x0c150002, otherwise known as the error that is the subject of this thread :)
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on April 10, 2008, 02:53:17 pm
Ok... so nothing's alarming, it's just the problem we all know :)
Title: Initial Installation Issue - (0xc0150002)
Post by: workmad3 on April 10, 2008, 04:01:25 pm
Heh :) yeah, no problems. I was just curious if it was a standard (and known) issue with the pre-built VC2008 binaries in the 1.2 release.
Title: Initial Installation Issue - (0xc0150002)
Post by: Laurent on April 10, 2008, 04:08:22 pm
It will be fixed for version 1.3 -- in fact I noticed that I was still compiling with Visual C++ 2008 beta 2 :lol:
Title: Initial Installation Issue - (0xc0150002)
Post by: workmad3 on April 10, 2008, 05:10:38 pm
Quote from: "Laurent"
It will be fixed for version 1.3 -- in fact I noticed that I was still compiling with Visual C++ 2008 beta 2 :lol:


Ah, we've all been there I expect :)