[Live-devel] Heap corruption in AudioInputDevice::createNew()

Marlon Reid Marlon at scansoft.co.za
Mon Nov 7 22:07:54 PST 2011


Hi,
 
The problem was that several functions like delete and new where defined
in msvcrtd.lib instead of libcmtd.  Ignoring msvcrt.lib in my project
solved the issue.
 
Regards.
 
 
 

________________________________

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: 08 November 2011 05:40 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Heap corruption in
AudioInputDevice::createNew()



On Nov 7, 2011, at 2:15 AM, Marlon Reid wrote:


	The call that trashes my heap is:
	 
	FramedSource *micInput =
(WindowsAudioInputDevice*)AudioInputDevice::createNew( envir(), 0, 16
/*BIT_RATE*/, 2 /*NUM_CHANNELS*/, 22050/*SAMPLE_RATE*/,
2/*GRANULARITY*/);
	Please note:

	My application never gets to this call.  Simply having it in my
code breaks the heap at startup



If your application "never gets to this call", then it can't be "The
call that trashes my heap".

I suspect that this code is just a 'red herring', and that the memory
smash is caused by something else that happened earlier.

Unfortunately I can't really offer any suggestions, except to first try
putting the code in its own application, rather than making it a
'plugin'.  That might make it easier to figure out what's going wrong
(or it might not...).


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111108/4dfad592/attachment-0001.html>


More information about the live-devel mailing list