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-boun...@ns.live555.com
[mailto:live-devel-boun...@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/ 

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to