-
the leak still happends ( with 0.9 the memory leak is a bit biger)
Regards.
2009-09-28 08:30:09 UTC in VMime
-
sorry the problem wasn not on bufferedStreamCopy()....
it was on msg->parse(data).. once the message is parsed an trated a memory leak is present..
vmime::message has no destructor or similar...??.
2009-09-14 14:22:54 UTC in VMime
-
I have found an other memory leak on **bufferedStreamCopy()**.
I have used like this..
file.open(filepath.c_str(),std::ios::in | std::ios::binary);
vmime::utility::inputStreamAdapter is(file);
vmime::string data;
vmime::utility::outputStreamStringAdapter os(data);
vmime::utility::bufferedStreamCopy(is,os);
// Actually parse the message
vmime::ref...
2009-09-14 10:46:20 UTC in VMime
-
I have find one of the memory leaks on:
Subject = hdr->Subject()->getValue().dynamicCast <vmime::text>()->getConvertedText(ch);
i think that the problem is on ->getConvertedText(ch); because i do:
SubjectEncoding = hdr->Subject()->getValue().dynamicCast <vmime::text>()->getWordAt(0)->getCharset().getName();
and here the is no memory leak...
2009-09-14 09:59:00 UTC in VMime
-
Ia have some BIG memory leaks on my program and using valgrind i have some vmime related messages. Aparently the part of code that looses more memory is this:
Attachments::Attachments(std::string filepath, std::vector<std::string> conf){
configuration = conf;
std::ifstream file;
file.open(filepath.c_str(),std::ios::in | std::ios::binary);...
2009-08-04 10:59:54 UTC in VMime
-
i have tested this metthod:
https://sourceforge.net/forum/message.php?msg_id=7419058
and with ->getText() i have no problem but with ->getPlaintext() no text is printed..
2009-06-16 13:40:41 UTC in VMime
-
Hi,
I am using the messageParser example of the Book (5.1.2): and when i get the textPart an html text part i have a doubt...
in de code apears like this..
tp->getPlanText()
tp is a htmltextPart an in the class reference aperas that getPlaintext is a const ref< const contentHandler >
i have tried to cast like this
tp->getPlaintext().dynamicCast...
2009-06-16 07:49:21 UTC in VMime
-
thanks!
2009-06-16 07:43:53 UTC in VMime
-
Hi,
i use this function to get the subject in UTF-8
vmime::charset ch(vmime::charsets::UTF-8);
hdr->Subject()->getValue().dynamicCast <vmime::text>()->getConvertedtext(ch);
but i want to know the encoding of the original string.
regards.
2009-06-05 06:19:09 UTC in VMime
-
Hi,
i use this function to get the subject in UTF-8
vmime::charset ch(vmime::charsets::UTF-8);
hdr->Subject()->getValue().dynamicCast <vmime::text>()->getConvertedtext(ch);
but i want to know the encoding of the original string.
regards.
2009-06-05 06:11:05 UTC in VMime