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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lynx876

Pages: [1]
1
Window / Access Violation.
« on: September 07, 2011, 11:21:09 pm »
Sorry fella, I was so p*ssed off when I was writing those last messages.

I never realised you were the person that wrote this(SFML), but that's not why I'm apologizing.

It turned out that the driver I had installed was corrupt!! I now have SFML working and it's pretty damn good!

I mainly came back to say thanks for trying to help me when I was being a d*ck and thanks for sharing your great work!

2
Window / Access Violation.
« on: August 29, 2011, 05:45:42 pm »
That's the way I've done it each time, I only checked the box when you said about it in your last post.

Edit:
Just tried a static link, nothing, just more errors.

Think I'll give up on it. Have to learn openGL or something. It's got to be easier than this. Thanks a lot for the help.

3
Window / Access Violation.
« on: August 29, 2011, 05:20:22 pm »
I don't have any -s files anywhere in the build :/

I told CMake to create them, but nothing...

4
Window / Access Violation.
« on: August 29, 2011, 04:32:50 pm »
Quote from: "Laurent"
I'm not talking about linking, I'm talking about which DLL files are used when you launch your executable.


You mean the one's you copy to the executable folder for runtime? Sorry, everything I've ever written in C++ games/apps, I've never used any other dll's etc.

If you do mean them, I've copied the dll's from the build I did of them "SFML\x86Build\lib\Release" or "SFML\x86Build\lib\Debug"

5
Window / Access Violation.
« on: August 29, 2011, 04:21:51 pm »
Quote from: "Laurent"
You didn't answer my question (ok, that wasn't exactly a question...) about DLL files.


Oh, yeah. lol. I've tried linking every which way. I just can't figure this out :/

6
Window / Access Violation.
« on: August 29, 2011, 03:39:44 pm »
Any way I try it, I get an access violation.

This is my additional dependancies:
sfml-system-d.lib
sfml-graphics-d.lib
sfml-window-d.lib

7
Window / Access Violation.
« on: August 29, 2011, 03:20:33 pm »
Sorry, I thought I posted back in here a minute ago.

I copied the "...2.0\include\SFML" to my VC directory. I have the clock code running fine again. But as soon as I add the render window line in, it just gives me the 0x05 error ):

Edit
:
Actually, I'm not getting the 0x05 access violation now. It just crashes... lol

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   clock.exe
  Application Version:   0.0.0.0
  Application Timestamp:   4e5b9263
  Fault Module Name:   nvoglv32.DLL

8
Window / Access Violation.
« on: August 29, 2011, 02:56:55 pm »
ok, I'm sorry for being really dumb here ):

I just deleted everything to do with SFML, yet again, from my download folders and from the VC directories.

I've built all the files etc ( from 2.0 again ), do I need to copy anything from the built files to the VC directories, as when I use '#include <SFML/...>' I don't even have the folder there to pick an .hpp file.

I'm sure last time I did this, it added all the include files into the VC directory for me.

I tried to link the '...lib\Release' where all the build files are, but nothing.

Cheers for trying to help me! lol.

9
Window / Access Violation.
« on: August 29, 2011, 02:24:04 pm »
Yeah, I tried to use both of them. I just deleted it all and tried to start again. Is it possible to rebuild the files from the 1.6 so that they work in VS2010?
If so, how? lol.

When I use the vs2008 files, I can compile the clock code from above and it works fine, but that's compiling in debug and using the sfml-system.lib. I always get errors when I link to -d libs.

10
Window / Access Violation.
« on: August 29, 2011, 01:36:40 pm »
Thanks for the reply. I did a lot of reading around last night, managed to build the files, I think... lol.

I've never had to build any files before, but what I got from the tutorial on here and some forum posts, I managed to get these files with CMake.



After using CMake to create these files, I then loaded ALL_BUILD.vcxproj and pressed F7 ( Build ).

I also add the additional dependancies:
Properties > Linker > Input > Additional Dependancies
   sfml-system.lib;sfml-graphics.lib;sfml-window.lib;sfml-audio.lib;sfml-network.lib

From what I'm doing, this should now work correctly?
Do I still need to add the include/lib directories? Now that they are in the VS2010 directoy.

I can still run the clock tutorial from this site, but as soon as I add a line to create a render window, I always get the 0x05 access violation error.

Code: [Select]
int _tmain(int argc, _TCHAR* argv[])
{
//error here
//sf::RenderWindow App( sf::VideoMode( 800, 600, 32 ), "My SFML Window" );

    sf::Clock Clock;

    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);

if( _kbhit() )
break;
    }

    return 0;
}


Sorry if you think I'm dumb, lmao. Been at this ( trying to get it to work ) for too long now.

11
Window / Access Violation.
« on: August 28, 2011, 11:43:02 pm »
A few things first.

Can SFML run on VS2010? I've noticed that there are not any files for this version.

Can I create a window from SFML to run on a 32" TV? I use this as my monitor via HDMI.
I've noticed a few people having problems with having more than one monitor etc.


So, here's the code that compiles, it's the tutorial code for the window:
Code: [Select]
#include "stdafx.h"

int main()
{
    // Create the main window
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool Running = true;
    while (Running)
    {
        App.Display();
    }

    return EXIT_SUCCESS;
}


This is what gives me the access violation as soon as it opens a console window. The code compiles fine.

In debug, I have these lines within the call stack window:
>   nvoglv32.dll!6980e3c3()    
    [Frames below may be incorrect and/or missing, no symbols loaded for nvoglv32.dll]   
    nvoglv32.dll!69820fdc()    
    nvoglv32.dll!6975eba0()

I've linked everything correctly, that I'm aware of and included the window.hpp within my stdafx.h.

If anyone could shed some light on this, as to why it's not working or something I am doing wrong, I'd be very greatful, thanks.

EDIT: Just some more info.

I'm running Windows 7 x64.
Nvidia GeForce GTX 550 Ti with the latest drivers.

Pages: [1]
anything