Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 16.02.2004, 22:46   #1
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default Memory Leak when using <iostream>

Hi.
I had a strange memory leak in simple project with DLL usage detected by MSVC.

Code:
 
Detected memory leaks!
Dumping objects ->
{55} normal block at 0x010A2E30, 37 bytes long.
 Data: < C			  > 00 43 00 CD CD CD CD CD CD CD CD CD CD CD CD CD 
{54} normal block at 0x010A2DD8, 44 bytes long.
 Data: < |L			 > 14 7C 4C 10 16 00 00 00 00 00 00 00 00 00 00 00 
Object dump complete.
Once I put Bounds Checker it shows me the memory leak on std::locale::_Init() -> locale0.cpp. The call stack shows it came from std::ios_base::Init::Init() -> <iostream>

Then I created simple MSVC dialog project, and only included <iostream>. The same memory leak appears there.
And as you can see there are some more leaks. Searching google gave me no result.
Is it supposed to be that way ?
Reply With Quote
Old 17.02.2004, 04:47   #2
Moderator
 
shatver's Avatar
 
Join Date: 07 2002
Location: Yerevan
Age: 46
Posts: 450
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Может сервис пак последний не прогнан?
Я например постоянно натыкался на глюки..которые потом с новым паком исчезали...

Не знаю правда номер последнего пака ... у меня пятый
Reply With Quote
Old 17.02.2004, 07:10   #3
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

Quote:
Originally Posted by shatver
Может сервис пак последний не прогнан?
Я например постоянно натыкался на глюки..которые потом с новым паком исчезали...

Не знаю правда номер последнего пака ... у меня пятый
Не, у меня всегда последние сервис паки на чем можно
Reply With Quote
Old 17.02.2004, 20:36   #4
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 35
Posts: 21,717
Downloads: 2
Uploads: 0
Reputation: 250 | 7
Default

Сур - я тебе скзал раз - скажу еще - leak - и скорее всего из-за msvc. Построй проект в VC7.1 (именно .1) - там их скорее всего не будет.
Reply With Quote
Old 17.02.2004, 20:55   #5
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

Quote:
Originally Posted by Agregat
Сур - я тебе скзал раз - скажу еще - leak - и скорее всего из-за msvc. Построй проект в VC7.1 (именно .1) - там их скорее всего не будет.
Если из-за msvc то на ихнем сайте где-то должно быть написано, неужели до меня никто <iostream> просто не включал и не проверял утечки?
Reply With Quote
Old 27.09.2004, 10:01   #6
Младенец
 
Join Date: 09 2004
Location: India
Age: 37
Posts: 1
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default Re: Memory Leak when using <iostream>

Hi,
Hope you got the answer for this purticular query.. Then will you pass it to me. I saw replays to your question, but those were in another language i don't understand.
Thanks
Sudheer

[email protected]


Quote:
Originally Posted by acid
Hi.
I had a strange memory leak in simple project with DLL usage detected by MSVC.

Code:
 
Detected memory leaks!
Dumping objects ->
{55} normal block a37 bytes long.
 Data: < C			  > 00 43 00 CD CD CD CD CD CD CD CD CD CD CD CD CD 
{54} normal block at 0x010A2DD8, 44 bytes long.
 Data: < |L			 > 14 7C 4C 10 16 00 00 00 00 00 00 00 00 00 00 00 
Object dump complete.
Once I put Bounds Checker it shows me the memory leak on std::locale::_Init() -> locale0.cpp. The call stack shows it came from std::ios_base::Init::Init() -> <iostream>

Then I created simple MSVC dialog project, and only included <iostream>. The same memory leak appears there.
And as you can see there are some more leaks. Searching google gave me no result.
Is it supposed to be that way ?
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 07:55.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.