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 - da_coolest

Pages: [1]
1
Graphics / Buffer overrun
« on: May 28, 2012, 08:20:07 pm »
Hi, I was trying to compile the code provided with the SFML tutorials and I get a buffer overrun error during the compilation.

following is the output :

Quote
'GraphicTest.exe': Loaded 'C:\Users\admin\Documents\Visual Studio 2008\Projects\GraphicTest\Debug\GraphicTest.exe', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\opengl32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msvcrt.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\advapi32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\sechost.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\gdi32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\user32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\lpk.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\usp10.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\glu32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\ddraw.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dciman32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\setupapi.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\oleaut32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\ole32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\devobj.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dwmapi.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\winmm.dll'
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
'GraphicTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcr90.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\imm32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msctf.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\uxtheme.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\prl_gldd.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\version.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\cryptbase.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\dinput.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\hid.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\wintrust.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\crypt32.dll'
'GraphicTest.exe': Loaded 'C:\Windows\System32\msasn1.dll'
First-chance exception at 0x0100a800 in GraphicTest.exe: 0xC0000005: Access violation.
A buffer overrun has occurred in GraphicTest.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.

For more details please see Help topic 'How to debug Buffer Overrun Issues'.
The program '[3236] GraphicTest.exe: Native' has exited with code 0 (0x0).

2
Audio / FFT on audio samples
« on: May 28, 2012, 05:54:00 pm »
Hi, I have loaded samples from a wav file to the memory and received it from SoundBuffer. I want to use FFTW to run FFT on these samples. FFTW takes the input as fftw_complex objects. What type of conversion do I have to do on the sample array to pass it to the FFTW ?

Thanks.

3
Audio / Cannot load a wav file
« on: February 17, 2012, 04:59:30 pm »
I have been trying to run the cpp file provided with the tutorial (http://www.sfml-dev.org/tutorials/1.6/audio-sound.php) and I keep getting an error message in the console "Failed to load sound buffer from file "sound.wav".

I use visual studio 2008. I have copied all dll from extdll and the sfml-audio.dll to the release folder. a wav file with the name "sound.wav" is also copied to the same folder.

following is what I got in the output section of the IDE.

Code: [Select]
'SFMLTest.exe': Loaded 'C:\Users\user\Documents\Visual Studio 2008\Projects\SFMLTest\Release\SFMLTest.exe', Symbols loaded.
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'SFMLTest.exe': Loaded 'C:\Users\user\Documents\Visual Studio 2008\Projects\SFMLTest\Release\sfml-system.dll'
'SFMLTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcp90.dll'
'SFMLTest.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\msvcr90.dll'
'SFMLTest.exe': Loaded 'C:\Users\user\Documents\Visual Studio 2008\Projects\SFMLTest\Release\sfml-audio.dll'
'SFMLTest.exe': Loaded 'C:\Users\user\Documents\Visual Studio 2008\Projects\SFMLTest\Release\openal32.dll', Binary was not built with debug information.
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll'
'SFMLTest.exe': Loaded 'C:\Users\user\Documents\Visual Studio 2008\Projects\SFMLTest\Release\libsndfile-1.dll', Binary was not built with debug information.
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\MMDevAPI.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\propsys.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\wdmaud.drv'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\ksuser.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\avrt.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\AudioSes.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\msacm32.drv'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\midimap.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll'
The thread 'Win32 Thread' (0xd88) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xbe4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x544) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x193c) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x14c0) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xb6c) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xa34) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0xfe0) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x1578) has exited with code 1 (0x1).
The thread 'Win32 Thread' (0x1460) has exited with code 1 (0x1).
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll'
'SFMLTest.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll'
The program '[6548] SFMLTest.exe: Native' has exited with code 1 (0x1).


Need your help. Thanks.

4
Audio / Capture a signal through the sound card
« on: February 01, 2012, 08:21:49 am »
Hi, I want to find a mechanism to capture an input signal through the sound card (not an audio signal). The signal is being produced in intervals and my goal is to determine the calculate the pulses per minute ratio and to use it accordingly. Any suggestions/tips would be highly appreciated as I'm new to programming.

5
Network / need help with UDP socket
« on: June 07, 2011, 10:44:15 pm »
Hi, I have never done any programming related to socket and network in c++. I have been learning to program using sfml and I was trying created a small program to see if its perfectly working on my pc. The program sends some small text message and I have set the destination address as my own IP address to test it. But havent got any good results. Is it possible to do such a thing, to capture a UDP packet from the same pc ?

6
Network / need help with an error message
« on: May 25, 2011, 07:47:22 pm »
Hi, im not an experienced C++ dev, I have been studying to program using sfml and i get the following error.

Quote
1>C:\Users\TOSHIBA\Documents\Visual Studio 2008\SFML-1.6\lib\sfml-network.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8

7
Window / Cannot create a new window
« on: April 26, 2011, 10:45:38 am »
Hi. I just installed SFML and trying to learn using it. I'm not a very experienced programmer either. I was trying to follow the tutorial available in the same website http://www.sfml-dev.org/tutorials/1.6/window-window.php and I'm getting these compile errors.

Quote
1>------ Build started: Project: testoop, Configuration: Debug Win32 ------
1>Compiling...
1>oop.cpp
1>Linking...
1>oop.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Window::~Window(void)" (__imp_??1Window@sf@@UAE@XZ)
1>oop.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ)
1>oop.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Window::Window(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (__imp_??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)
1>oop.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>C:\Users\TOSHIBA\Documents\Visual Studio 2008\Projects\MY_PROJECTS\testoop\Debug\testoop.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://c:\Users\TOSHIBA\Documents\Visual Studio 2008\Projects\MY_PROJECTS\testoop\testoop\Debug\BuildLog.htm"
1>testoop - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Pages: [1]
anything