Memory Leak DomainParticipantFactory PreviousNext
Data Distribution Service (DDS) Forum > DDS Technical Forum >
Message/Author
Next message Oliver Tracey  posted on Thursday, July 29, 2010 - 02:10 pm
Hello,

I am trying to integrate a pub/sub mechanisum into my application and have found the DomainParticipantFactory leaks memory. Here is some simple example code.

#include <stdio.h>
#include <stdlib.h>
#include "HelloWorld.h"
#include "HelloWorldSupport.h"
#include "ndds/ndds_cpp.h"
#include <crtdbg.h>

int main(int argc, char *argv[])
{
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif

DDSDomainParticipantFactory::get_instance();

DDSDomainParticipantFactory::finalize_instance();

return 0;
}

I am quite new to this so I could possibly be missing somthing quite fundamental. Please Help!

Many Thanks

O
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action: