Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: For some reason this error wont go away.  (Read 4956 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« on: January 01, 2012, 01:03:38 am »
I'm getting this error every time and all I want to do is make a window. :(

First-chance exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.


I've narrowed down the location where the error is coming from to this line
Code: [Select]

sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");


Here's the rest of the program

Code: [Select]

/*C++ Compiler Includes*/
#include "stdafx.h"
#include <iostream>
/*C++ Compiler Includes*/
/*SFML Includes*/
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
//#include <SFML\Audio.hpp>
/*SFML Includes*/

sf::RenderWindow Window(sf::VideoMode(800, 600, 32), "SFML Sample Application");

while (Window.IsOpened())
{

sf::Event Event;
while (Window.PollEvent(Event))
{
switch (Event.Type)
{
case sf::Event::Closed: Window.Close();
break;

default:
break;
}
}

Window.Clear(sf::Color(0, 255, 255));
Window.Display();
}

//system("pause");
return EXIT_SUCCESS;


Does anyone know what is going on or how to fix this?

I don't like having problems I can't solve and I'm clueless as to where else to look on this one. :(
I have many ideas but need the help of others to find way to make use of them.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
For some reason this error wont go away.
« Reply #1 on: January 01, 2012, 01:08:57 am »
Could be the same problem as me?
http://www.sfml-dev.org/forum/viewtopic.php?p=43571#43571

If so, Laurent just uploaded a fix for this on github today:
https://github.com/SFML/SFML/commit/c0af511ed1494ff6ed56b34123d2a8167fc8edfe

Zinlibs

  • Full Member
  • ***
  • Posts: 127
    • View Profile
For some reason this error wont go away.
« Reply #2 on: January 01, 2012, 01:09:11 am »
Where is the main function ?
Zoost & Zoom libraries : An easy way to create and handle geometric objets, animate and use them for better graphics !

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #3 on: January 01, 2012, 01:12:35 am »
Quote from: "Zinlibs"
Where is the main function ?


My main function is there I just didn't show it in the code.



I'll look through the links and see if anything solves the issue.

Any ideas what it could be in the meantime?
I have many ideas but need the help of others to find way to make use of them.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #4 on: January 01, 2012, 09:43:30 pm »
I don't know what worse the error I mentioned here or my compiler not being able to find the SFML headers.  :!:

In my old project it finds them but I get the error I mentioned and in the new one it just won't find them. I know I've linked them right and I'm now completely clueless as to what in the world is going on here on my end. :?:
I have many ideas but need the help of others to find way to make use of them.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #5 on: January 02, 2012, 04:17:12 am »
Never mind the part about my compiler not wanting to find the header files. I went and used the wrong area for the include directory.  :oops:


I downloaded the 1.6 version of SFML and it runs fine so I think it has something to do with the current version at the moment. :?:

Haven't checked the current download of SFML yet but I do have it.

In any event I'll see if a classmate of mine can help me get setup in the 2.0 version tomorrow since school is starting back up on my end and he knows the most about SFML in terms of in person people I can ask for help and he has the libraries fully compiled.  :D
I have many ideas but need the help of others to find way to make use of them.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
For some reason this error wont go away.
« Reply #6 on: January 02, 2012, 04:27:18 am »
But all you had to do was download and compile the latest commit posted above.
That or get the latest version from github or the download page.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #7 on: January 02, 2012, 10:05:24 pm »
Going from one problem to another and this one is equally strange.

http://
https://sites.google.com/site/picturesimade12341423/errors

The Two files here show both the error I'm getting and have the program itself.

I'm getting really tired of not being able to use SFML2.0 .
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
For some reason this error wont go away.
« Reply #8 on: January 02, 2012, 10:50:59 pm »
Did you compile SFML with the STATIC_STD_LIBS option enabled?

Are you sure that you're not miwing Debug and Release?

Can you use the debugger to have more information about the crash?

Can you post a complete and minimal source code that reproduces the problem?

Thanks ;)
Laurent Gomila - SFML developer

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #9 on: January 02, 2012, 11:37:35 pm »
Quote from: "Laurent"
Did you compile SFML with the STATIC_STD_LIBS option enabled?

Are you sure that you're not miwing Debug and Release?

Can you use the debugger to have more information about the crash?

Can you post a complete and minimal source code that reproduces the problem?

Thanks ;)


I can't get CMake to build the Static libs for some reason so I'm using the libs that use the dll files.  Not sure what you meant by that option you are mentioning. Is it in the compiler or CMake? I'll look and see if the tutorials mention anything about it.

I use the normal Debug and Release settings on my compiler and now that you mention it I'm not sure what it settings for that are but I think they are the needed one but I'll check.

The link I posted goes to a place where I have the file project that has the error unless for some strange reason it doesn't cause the error on your computer.

Here's the Microsoft Visual 2010 Express project that has the error in it. I'll try and see if I can get the Debugger to give me more information.
http://
https://sites.google.com/site/picturesimade12341423/errors
I have many ideas but need the help of others to find way to make use of them.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #10 on: January 03, 2012, 04:07:10 am »
Here's the full debugger information that it is showing me.

Code: [Select]

'SFML2p0Testing.exe': Loaded 'C:\Documents and Settings\Roland.USER-6FEF0AE329\My Documents\Visual Studio 2010\Projects\SFML2p0Testing\Debug\SFML2p0Testing.exe', Symbols loaded.
'SFML2p0Testing.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Cannot find or open the PDB file
'SFML2p0Testing.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Cannot find or open the PDB file
'SFML2p0Testing.exe': Loaded 'C:\Documents and Settings\Roland.USER-6FEF0AE329\My Documents\Visual Studio 2010\Projects\SFML2p0Testing\SFML2p0Testing\sfml-graphics-d-2.dll', Symbols loaded.
SXS: RtlCreateActivationContext() failed 0xc000000d
LDR: LdrpWalkImportDescriptor() failed to probe c:\documents and settings\roland.user-6fef0ae329\my documents\visual studio 2010\Projects\SFML2p0Testing\SFML2p0Testing\sfml-graphics-d-2.dll for its manifest, ntstatus 0xc000000d
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3700] SFML2p0Testing.exe: Native' has exited with code -1073741811 (0xc000000d).


I couldn't compress the files made by CMake enough to fit them onto Google Sites. :( But here's everything-else that I've got from this error riddled project.
http://
https://sites.google.com/site/sfmlworkscjr/sfmlfiles


I also put a picture of the current build settings I have for CMake in there just in case anyone asks what settings used. :)
I have many ideas but need the help of others to find way to make use of them.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
For some reason this error wont go away.
« Reply #11 on: January 03, 2012, 05:56:55 am »
Quote
I also put a picture of the current build settings I have for CMake in there just in case anyone asks what settings used. :)

You need to press Configure again to set the settings.  :wink:
Only then press Generate.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
For some reason this error wont go away.
« Reply #12 on: January 03, 2012, 06:21:24 am »
I did before I took the screen Shot and closed CMake.  They were that color when I started it back up. I did the configure twice thing and still had the errors.

So it seems the color of the lines has to not be red. :?:

My CMake and my compiler are on two different disk drives. Would that cause anything like this?
I have many ideas but need the help of others to find way to make use of them.

 

anything