DMALLOC and SDL

Currently I am trying to get Dmalloc and SDL working together.
I am wondering what sort of success people have had(esp you Sam
since I think you use it).

I am having trouble getting it to run because the darn thing keeps
crashing in GET_RET_ADDRESS all the time. This will also be
pointed to the Dmalloc mail group, but I wonder what kind of success
you’ve had. Also, did you ever get shared libraries out of that
thing too?!?!? :slight_smile:

-Alan Carr
http://www.denizengames.com

Currently I am trying to get Dmalloc and SDL working together.
I am wondering what sort of success people have had(esp you Sam
since I think you use it).

I have no problems with it myself. I did have to make a quick hack
(I think enabling multi-thread support) to get it to work.

I am having trouble getting it to run because the darn thing keeps
crashing in GET_RET_ADDRESS all the time. This will also be
pointed to the Dmalloc mail group, but I wonder what kind of success
you’ve had. Also, did you ever get shared libraries out of that
thing too?!?!? :slight_smile:

I don’t use it as a shared library.

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

you’ve had. Also, did you ever get shared libraries out of that
thing too?!?!? :slight_smile:

I just grab the 'ar cr libdmalloc.a … ’ line and
replace it with 'g++ -shared -o libdmalloc.so … '. You
may have to specify ‘-fPIC’ when you build the object files, too.

But the static lib usually does everything you need.

m.On Thu, Dec 09, 1999 at 12:34:38AM -0800, Alan Carr wrote:


Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC