[Live-devel] Visual Studio 2008

BONNEAU Guy Guy.Bonneau at miranda.com
Thu Apr 26 16:23:39 PDT 2012


Gord included is a zip file of a folder named visual2008.zip. Unzip the folder in root directory of the live folder. Then open the solution file live.sln in the folder visual2008.  Make sure the live folder contain the entire original unmodified live555 library. The solution contains almost all the test application of live555 including testRTSPClient application. It should compile fine all the testing applications except for one (this is normal) and you shouldn’t have any issue to run them under windows.

I took a fast look at your issue and I believe I might have found the cause of the corruption. Put a breakpoint at line 1263 of file RTSPClient.cpp. This line should be:

  client->connectionHandler1();

Set testRTSPClient as the starting application of the solution and setup the argument in the debug property dialog. The run and wait for the timeout to occur. You will break at line 1263 of file RTSPClient. Then trace and debug the code single stepping until you reach line 399 of testRTSPClient.cpp . At this point this is the call stack you should have:

RTSPClient::connectionHandler (void* instance, int /*mask*/)
client->connectionHandler1()

RTSPClient::connectionHandler1()
handleRequestError(request)


RTSPClient::handleRequestError(RequestRecord* request)
if (request->handler() != NULL) (*request->handler())(this, resultCode, strDup(envir().getResultMsg()));

continueAfterDESCRIBE(RTSPClient* rtspClient, int resultCode, char* resultString)
shutdownStream(rtspClient);

void shutdownStream(RTSPClient* rtspClient, int exitCode)
Medium::close(rtspClient);  //(Breakpoint)


I might be wrong but this is what I believe might be the issue. The rtspClient object is deleted by Medium::close(rtspClient) in the context of the object still being used. I did not go further in the investigation. But this should be a good starting point because anything is possible after the deleting of the rtspClient including heap corruption.

Hope this help!

Guy Bonneau

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Gord Umphrey
Sent: Thursday, April 26, 2012 9:38
To: live-devel at ns.live555.com
Subject: [Live-devel] Visual Studio 2008

We are still getting heap corruption with the libraries that we have built with VS 2008.

Is there anywhere that we can download the .lib’s directly so that we can narrow down where the problem is?

Are there any tricks to building with VS 2008?  The FAQ suggestions do not help.

Thanks,
Gord.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120426/6c12c18a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Visual2008.zip
Type: application/x-zip-compressed
Size: 42719 bytes
Desc: Visual2008.zip
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120426/6c12c18a/attachment-0001.bin>


More information about the live-devel mailing list