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.


Topics - Sazabi02

Pages: [1]
1
General / Error When Closing Window
« on: January 23, 2009, 06:43:39 am »
Can you help me please. I'm having trouble with the SFML 1.4.

After going to 1.4 every time I close the Window I an error message saying

Code: [Select]
The instruction at "0x6973c180" referenced memory at "0x014E0654". The memory could not be "read".

Click on OK to terminate the program.


I tried it with a sample from the tutorials too. The "graphics-view.cpp" tutorial and the same thing happened.

Here's the error in the output Window.


Code: [Select]
'SFTest2.exe': Loaded 'E:\Dev\C++\V C++ (SFML)\SFTest2\Debug\SFTest2.exe', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-window-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-system-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\sfml-graphics-d.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375\msvcr90.dll', Symbols loaded.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\dinput.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\hid.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll'
'SFTest2.exe': Loaded 'C:\Program Files\McAfee\SiteAdvisor\sahook.dll'
'SFTest2.exe': Loaded 'C:\Program Files\RocketDock\RocketDock.dll', Binary was not built with debug information.
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\psapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nview.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\version.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\ntmarta.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\samlib.dll'
'SFTest2.exe': Loaded 'C:\Program Files\FlashGet\fgmgr.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\wininet.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\normaliz.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\iertutil.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\msctf.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvoglnt.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\mcd32.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\mcd32.dll'
'SFTest2.exe': Loaded 'C:\Program Files\Common Files\Logitech\LVMVFM\LVPrcInj.dll'
The thread 'Win32 Thread' (0xae4) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xf5c) has exited with code 35389440 (0x21c0000).
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll', Binary was not built with debug information.
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwddi.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
'SFTest2.exe': Loaded 'C:\WINDOWS\system32\nvwimg.dll', Binary was not built with debug information.
'SFTest2.exe': Unloaded 'C:\WINDOWS\system32\nvwimg.dll'
The thread 'Win32 Thread' (0x398) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x580) has exited with code 0 (0x0).
First-chance exception at 0x6973c180 in SFTest2.exe: 0xC0000005: Access violation reading location 0x014e0654.
Unhandled exception at 0x6973c180 in SFTest2.exe: 0xC0000005: Access violation reading location 0x014e0654.


Can anyone tell me what I'm doing wrong?

2
Graphics / Center-aligned texts using sf::string
« on: January 09, 2009, 01:06:18 pm »
I've been trying so hard to make this work for a button class that I made so that the text would be in the middle but somehow I can't find anyway to do it.

I tried doing:
Code: [Select]

sf::String text;
text.Move( x + buttonWidth / 2 - text.GetRect().GetWidth() / 2, y + buttonHeight / 2 - GetRect().GetHeight());
App.Draw(text);


Can anyone help please? I'm kinda stumped here. Whenever I do that code the bounding rectangle turns out a little bit closer to the top left side instead of being at the center.

Pages: [1]