Jump to content

  • Log In with Google      Sign In   
  • Create Account


Hedanito

Member Since 04 Aug 2010
Offline Last Active Jan 19 2014 11:01 AM
-----

Posts I've Made

In Topic: Memory tracer and placement new

27 September 2013 - 04:56 AM

Thanks guys, it seems that undefining new is the way to go.

I just have a define and undefine header now, and the define header is automatically included with the memory manager.

It is not the prettiest solution, but since placement new is so rare I can live with it.


In Topic: Window Frame causing memory corruption

27 July 2013 - 07:44 AM

After a lot more searching I finally found the source of the bug.

Apparently, the moment I make the window visible it starts sending messages to StaticWndProc, without me calling PeekMessage.

This in turn starts triggering events (not Windows Events, but my event system), which in turn request information about the window.

But all of this is still happening in the constructor of the window object.

So the pointer to the window which it requests information from has not yet been set.

Then it tries to do things with the invalid window pointer, and voila, memory corruption.

 

I now simply fixed it with a bool to make sure the constructor has been completed.

 

I do find it weird though that it didnt crash sooner, because the pointer was set to 0.

Usually accessing 0 immediately results in a crash.


In Topic: Blending multiple lights in deferred renderer

19 August 2012 - 04:14 AM

You have to call it once for every light, with glBlendFunc(GL_ONE, GL_ONE) so that it adds the results together.

In Topic: Unregistering Raw Input

18 August 2012 - 12:59 PM

So when having multiple window frames, I'll have to register every time the window focus changes?

In Topic: Winsock Multiprocess Issues

05 April 2012 - 01:39 AM

Yes that seemed to be the problem.
Changing some settings in CreateProcess fixed the problem.
Thank you for your help.

PARTNERS