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

Author Topic: SFML-2.1 has encountered a problem and needs to close !  (Read 2729 times)

0 Members and 1 Guest are viewing this topic.

Rashid

  • Newbie
  • *
  • Posts: 3
    • View Profile
SFML-2.1 has encountered a problem and needs to close !
« on: August 24, 2013, 01:02:58 pm »
Hi everyone...

I have an assignment that I have to program a network game using SFML.

Unfortunately, every (cpp) files can be compiled as well but the files do not work after compile them. even the examples which already complied can not work. That means the problem is not with the compiler !

I already sat the SFML-2.1 folder up in my C drive and sat the bath but the problem may not with the sfml I think it is with my computer.

anyone had any knowledge how to solve this problem please help me.

I attached a screen shot of the problem that I have.

note that: my operation system is Widows XP (32Bit)

TQ

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #1 on: August 24, 2013, 07:05:57 pm »
Can you show us the detailed error report?  Did the compiler or linker produce any warnings?

We need more information or all we can do is repeat the standard questions like "Are you mixing debug/release?"

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #2 on: August 24, 2013, 07:09:43 pm »
We need more information or all we can do is repeat the standard questions like "Are you mixing debug/release?"
He gets the crash with the pre-compiled examples as well, so it's not a linking issue. ;)

You might want to try recompiling SFML on your own. Although it should work, one can sometimes get problems when compiling on Win7 and then trying to use it on XP.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Rashid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #3 on: August 24, 2013, 10:33:24 pm »
Thank you for your attention,


I should show you the steps that I did.  I may have a mistake.

I downloaded the SFML from this like:
http://www.sfml-dev.org/download/sfml/2.1/SFML-2.1-windows-gcc-4.7-mingw-32bits.zip

and unzipped to my (C:\) drive,

then I sat the path form (My computer advanced properties)

( there is some compiled examples in SFML-2.1 folder ) but they can not work to !

I tried to re-compile some of them using CMD, they compile but do not work !!

no compiling problems the problem is every (exe) files that have SFML codes do not work :(

the problem report is that:

 ========================================

AppName: mypong.exe    AppVer: 0.0.0.0    ModName: sfml-window-2.dll
ModVer: 0.0.0.0    Offset: 00002890

=======================================





<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="mypong.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="a.exe" SIZE="50794" CHECKSUM="0x14B116D9" MODULE_TYPE="WIN32" PE_CHECKSUM="0xC82E" LINKER_VERSION="0x10000" LINK_DATE="08/24/2013 10:38:27" UPTO_LINK_DATE="08/24/2013 10:38:27" />
    <MATCHING_FILE NAME="mypong.exe" SIZE="90005" CHECKSUM="0xE92AE20B" MODULE_TYPE="WIN32" PE_CHECKSUM="0x1C630" LINKER_VERSION="0x10000" LINK_DATE="08/24/2013 20:15:22" UPTO_LINK_DATE="08/24/2013 20:15:22" />
    <MATCHING_FILE NAME="pong.exe" SIZE="1382604" CHECKSUM="0xCD5CD1BF" MODULE_TYPE="WIN32" PE_CHECKSUM="0x15F439" LINKER_VERSION="0x0" LINK_DATE="07/25/2013 05:31:06" UPTO_LINK_DATE="07/25/2013 05:31:06" />
</EXE>
<EXE NAME="sfml-window-2.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="sfml-window-2.dll" SIZE="129198" CHECKSUM="0x8249F708" MODULE_TYPE="WIN32" PE_CHECKSUM="0x20184" LINKER_VERSION="0x20001" LINK_DATE="07/25/2013 05:34:51" UPTO_LINK_DATE="07/25/2013 05:34:51" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x7D737C09" BIN_FILE_VERSION="5.1.2600.5512" BIN_PRODUCT_VERSION="5.1.2600.5512" PRODUCT_VERSION="5.1.2600.5512" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5512 (xpsp.080413-2111)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF44A2" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5512" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5512" LINK_DATE="04/14/2008 00:11:24" UPTO_LINK_DATE="04/14/2008 00:11:24" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>


=======================================

for this question ( "Are you mixing debug/release?" )

I don't use codeblocks

( I downloaded it but never use it ) I am just using Notepad++ and compile files by normal ways using windows command

so I actually didn't understand your question.



thank u again for your attention
« Last Edit: August 24, 2013, 10:35:17 pm by Rashid »

croux

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #4 on: August 27, 2013, 10:01:31 am »
same problem here... have someone solved this issue  please?

But when i tried precompiled sound.exe examples from (GCC 4.7 TDM (SJLJ) - 64 bits) with its binaries it is working. Maybe its bcs of 64 bit Win 7.
« Last Edit: August 27, 2013, 10:05:11 am by croux »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #5 on: August 27, 2013, 10:12:50 am »
no compiling problems the problem is every (exe) files that have SFML codes do not work :(
As I told you already, you should try to recompile SFML on your own. :)

same problem here... have someone solved this issue  please?

But when i tried precompiled sound.exe examples from (GCC 4.7 TDM (SJLJ) - 64 bits) with its binaries it is working. Maybe its bcs of 64 bit Win 7.
It's usually better to create your own thread.
What compiler are you using? If you're using the default compiler of Code::Blocks, you'll have to grab GCC 4.7 TDM (SJLJ) - 32bits package.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

croux

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #6 on: August 27, 2013, 10:44:33 am »
ok thanks...mingw update solved my problem :)

Rashid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: SFML-2.1 has encountered a problem and needs to close !
« Reply #7 on: August 28, 2013, 12:03:33 pm »
well,

I'd like to say thank you for all,

the problem has solved,

Croux said (ok thanks...mingw update solved my problem)

and also my lecturer told me that.

To overcome this problem, do the following:

1. Remove or rename the existing MinGW

2. Download the latest mingw-get-setup.exe installer file from: http://sourceforge.net/projects/mingw/files/latest/download?source=files

3. Run the installer, make sure you select the default folder (i.e. C:MinGW)

4. Select Basic Setup

5. Tick the mingw32-gcc-g++ package

6. Apply Changes

To check your compiler version after installation, type the below at the command windows:

      g++ --version

If you get version 4.7.2, then you compiler should be ok now.


Just unzip it to C:MinGW, and you should be good to go.


( the is the solution )

Thank you for all