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

Pages: [1]
1
Audio / Access violation reading area with :setBuffer (SFML 2)
« on: July 27, 2012, 02:01:20 am »
I have this code:

                m_soundintrobuffer.loadFromFile(DataLoader::getSoundPath(1));
                m_soundintroplayer.setBuffer(m_soundintrobuffer);

The file is certainly loading correctly as it gives no console output relating to file loading, and when I comment out the second line the program runs fine.

However the second line is resulting in me getting this output:

First-chance exception at 0x7434364E (sfml-audio-2.dll) in Viscus Engine.exe: 0xC0000005: Access violation reading location 0x3F800011.

Unhandled exception at 0x7434364E (sfml-audio-2.dll) in Viscus Engine.exe: 0xC0000005: Access violation reading location 0x3F800011.

If it helps, after this my IDE (Visual Studio 2012 RC) brings up the file 'free.c' which contains:


/***
*free.c - free an entry in the heap
*
*       Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
*       Defines the following functions:
*           free()     - free a memory block in the heap
*
*******************************************************************************/


#include <cruntime.h>
#include <malloc.h>
#include <winheap.h>
#include <windows.h>
#include <internal.h>
#include <mtdll.h>
#include <dbgint.h>
#include <rtcsup.h>

/***
*void free(pblock) - free a block in the heap
*
*Purpose:
*       Free a memory block in the heap.
*
*       Special ANSI Requirements:
*
*       (1) free(NULL) is benign.
*
*Entry:
*       void *pblock - pointer to a memory block in the heap
*
*Return:
*       <void>
*
*******************************************************************************/


void __cdecl _free_base (void * pBlock)
{

        int retval = 0;


        if (pBlock == NULL)
            return;

        RTCCALLBACK(_RTC_Free_hook, (pBlock, 0));

        retval = HeapFree(_crtheap, 0, pBlock); // <<<< It seems to be dying here
        if (retval == 0)
        {
            errno = _get_errno_from_oserr(GetLastError());
        }
}


64-bit windows 7, Visual Studio 2012 RC, compiling as multithreaded (non-dll) to avoid end users needing redistributables, non-static SFML, all DLLs for SFML, OpenAL and libsnd-file1 or whatever are present.

Sorry if this is some stupid mistake I've made. I hope not. :P

Also the types are right otherwise it'd presumably stop compiling rather than at runtime.

2
Graphics / Load image from the internet
« on: June 05, 2012, 01:37:28 am »
Is there any trivial way, perhaps using the HTTP or FTP sub-modules of the networking module, to load an image into a texture or image without actually putting the image onto the local machine?

3
SFML website / Code dropdown box for bbcode
« on: June 04, 2012, 08:41:48 pm »
I suggest you move it slightly, perhaps left of Font Face.

Myself and many others didn't notice it at first, and used teletype or alternatives, which must get irritating after a while.

Admittedly it's more from rushing on our side but I think it'd save you a lot of time if everyone saw the dropdown before they skipped to going teletype.

4
Network / Questions about networking API [SOLVED]
« on: June 02, 2012, 10:02:22 pm »
EDIT

Solved my problem, which was because I was accidentally misusing  and the question (Lots of small packets or one big one) I just decided to use medium sized ones, since it seems to have the best of both worlds. I'll probably split each thing up and give it a packet (Ex one for the map changes, one for entities, etc)

The reason it was going wrong was because I was disconnecting a client that had already been disconnected. I have no idea what I was thinking at the time ^_^, and a second reason was I was trying to move something while iterating on it. ¬_¬
                                                        client.disconnect();
                                                        networkSelector.remove(client);
                                                        clients.remove(&client);

Was my code. I then removed first line and modified the removing system clients and it seems to be flawless with connection and disconnection.

Sorry for posting since I ended up solving it myself.

5
General / Unhandled exception at 0x7596FEB8 (KernelBase.dll)
« on: May 29, 2012, 08:40:54 pm »
I've been running SFML in this project fine for a while now.

I'm using precompiled SFML 2.0 stuff compiled for VS2010, (Although I'm using VS11, they work fine, I guess VS2010 and VS11 aren't too different compiling-wise), and I've encountered nothing like this so far.

The full error is:

Unhandled exception at 0x7596FEB8 (KernelBase.dll) in sfmlt.exe: 0xC0000005: Access violation reading location 0x6E697720

VS11 is highlighting this line:

sf::RenderWindow window(sf::VideoMode(1000, 800), "SFML window");

I haven't changed anything since it was building fine other than trying to compile with static libraries, but I kept messing up so I just went back to the regular ones.

While I'm here, every time I use the application on another computer it cries about MSVCR100.dll or something, can I package this with my application?

Edit:

My external dependencies is as follows:

sfml-system-d.lib
sfml-window-d.lib
sfml-graphics-d.lib
sfml-audio-d.lib
sfml-network-d.lib
sfml-main-d.lib
opengl32.lib


My #includes are as follows:

#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <iostream>
#include "GIMap.h"


Edit:

Graphics Card:AMD Radeon HD 6670
OS:Windows 7 Home Premium 64-bit

I'm using dynamic libraries (As can be assumed from my post's body above this)

Pages: [1]