how to detect memory leak?

Hi,

I have mfc dialog based application which launches a wizard. On running the 
application in debuAfter the wizardFinish VS2005 output windows a few memory 
leaks but the filename is not mentioned.

How can I find where memory leak has happened?

Detected memory leaks!
Dumping objects ->
{2060} normal block at 0x01835A30, 244 bytes long.
 Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16 
{2044} normal block at 0x018387B8, 244 bytes long.
 Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F 
{2036} normal block at 0x01838028, 39 bytes long.
 Data: <     |  +P      > 17 10 10 00 04 7C 83 01 2B 50 83 01 00 CD CD 00 
{2025} normal block at 0x01837D40, 244 bytes long.
 Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16 
{2008} normal block at 0x018380B0, 244 bytes long.
 Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F 
{1990} normal block at 0x018377A8, 244 bytes long.
 Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16 
{1910} normal block at 0x01837E70, 192 bytes long.
 Data: <   1      +\ N  > A2 A5 D5 31 82 8D 0C A2 89 A3 2B 5C EC 4E BC D1 
{1909} normal block at 0x01834D00, 20 bytes long.
 Data: <p~  0   0       > 70 7E 83 01 30 00 00 00 30 00 00 00 00 00 00 00 
{1861} normal block at 0x018329B8, 36 bytes long.
 Data: <                > 98 10 00 00 02 00 00 00 7F 00 00 01 00 00 00 00 
{1816} normal block at 0x01832ED0, 388 bytes long.
 Data: <   J   Q   }q   > E5 F7 96 4A FB 9D A5 51 E7 B4 EE 7D 71 02 C2 81 
{1809} normal block at 0x018331E0, 192 bytes long.
 Data: <  _VE mmH*F vi m> 8C 18 5F 56 45 EF 6D 6D 48 2A 46 A2 76 69 C3 6D 
{231} normal block at 0x01832A38, 388 bytes long.
 Data: <   2}   s Gg!>  > E0 95 C6 32 7D D2 15 F1 73 8C 47 67 21 3E 0E 8E 
{206} normal block at 0x01832468, 192 bytes long.
 Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1 
{202} normal block at 0x01832158, 72 bytes long.
 Data: <    8*  0   a   > 00 06 00 00 38 2A 83 01 30 00 00 00 61 00 00 00 
{201} normal block at 0x01832108, 20 bytes long.
 Data: < .  0   a       > D0 2E 83 01 30 00 00 00 61 00 00 00 00 00 00 00 
{200} normal block at 0x018320B8, 20 bytes long.
 Data: < 1  0   0       > E0 31 83 01 30 00 00 00 30 00 00 00 00 00 00 00 
{198} normal block at 0x01832010, 4 bytes long.
 Data: <    > 02 00 00 00 
{197} normal block at 0x01831F10, 192 bytes long.
 Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1 
{196} normal block at 0x01831EC0, 20 bytes long.
 Data: <                > 10 20 83 01 01 00 00 00 01 00 00 00 00 00 00 00 
{195} normal block at 0x01831E70, 20 bytes long.
 Data: <    0   0       > 10 1F 83 01 30 00 00 00 30 00 00 00 00 00 00 00 
{194} normal block at 0x01831E28, 12 bytes long.
 Data: <@           > 40 1D 83 01 00 00 00 00 08 00 00 00 
{193} normal block at 0x01831DD8, 16 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
{192} normal block at 0x01831D88, 20 bytes long.
 Data: <                > 00 00 00 00 D8 1D 83 01 00 00 00 00 04 00 00 00 
{191} normal block at 0x01831D40, 12 bytes long.
 Data: <            > 08 00 00 00 88 1D 83 01 00 00 00 00 
{190} normal block at 0x01831CC0, 64 bytes long.
 Data: <(               > 28 1E 83 01 00 00 00 00 00 00 00 00 00 00 00 00 
{189} normal block at 0x01831C20, 96 bytes long.
 Data: <    `>L @>L     > C0 1C 83 01 60 3E 4C 00 40 3E 4C 00 08 00 00 00 
{188} normal block at 0x01831B98, 76 bytes long.
 Data: <        p       > 00 00 00 00 00 00 00 00 70 1E 83 01 C0 1E 83 01 
Object dump complete

Any help in this regard is highly appreciated
0
Albert (28)
3/10/2007 12:23:11 PM
vc.mfc 33608 articles. 0 followers. Follow

4 Replies
801 Views

Similar Articles

[PageSpeed] 5

Albert wrote:
> Hi,
> 
> I have mfc dialog based application which launches a wizard. On running the 
> application in debuAfter the wizardFinish VS2005 output windows a few memory 
> leaks but the filename is not mentioned.
> 
> How can I find where memory leak has happened?
> 
> Detected memory leaks!
> Dumping objects ->
> {2060} normal block at 0x01835A30, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16 
>...

The reported number like {2060} is an allocation serial number.  If this 
number repeats each time you run and close the program then finding the 
leak is easy.  Add this line to you code (early in InitInstance would be 
a good place):

_CrtSetBreakAlloc(2060);

Now the 2060'th time you do an allocation the debugger will halt, and 
you can use the stack window to find the line of your code that 
requested this allocation.

-- 
Scott McPhillips [VC++ MVP]

0
Scott
3/10/2007 2:04:35 PM
On Mar 10, 7:23 am, Albert <Alb...@discussions.microsoft.com> wrote:
> Hi,
>
> I have mfc dialog based application which launches a wizard. On running the
> application in debuAfter the wizardFinish VS2005 output windows a few memory
> leaks but the filename is not mentioned.
>
> How can I find where memory leak has happened?
>
> Detected memory leaks!
> Dumping objects ->
> {2060} normal block at 0x01835A30, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {2044} normal block at 0x018387B8, 244 bytes long.
>  Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F
> {2036} normal block at 0x01838028, 39 bytes long.
>  Data: <     |  +P      > 17 10 10 00 04 7C 83 01 2B 50 83 01 00 CD CD 00
> {2025} normal block at 0x01837D40, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {2008} normal block at 0x018380B0, 244 bytes long.
>  Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F
> {1990} normal block at 0x018377A8, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {1910} normal block at 0x01837E70, 192 bytes long.
>  Data: <   1      +\ N  > A2 A5 D5 31 82 8D 0C A2 89 A3 2B 5C EC 4E BC D1
> {1909} normal block at 0x01834D00, 20 bytes long.
>  Data: <p~  0   0       > 70 7E 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {1861} normal block at 0x018329B8, 36 bytes long.
>  Data: <                > 98 10 00 00 02 00 00 00 7F 00 00 01 00 00 00 00
> {1816} normal block at 0x01832ED0, 388 bytes long.
>  Data: <   J   Q   }q   > E5 F7 96 4A FB 9D A5 51 E7 B4 EE 7D 71 02 C2 81
> {1809} normal block at 0x018331E0, 192 bytes long.
>  Data: <  _VE mmH*F vi m> 8C 18 5F 56 45 EF 6D 6D 48 2A 46 A2 76 69 C3 6D
> {231} normal block at 0x01832A38, 388 bytes long.
>  Data: <   2}   s Gg!>  > E0 95 C6 32 7D D2 15 F1 73 8C 47 67 21 3E 0E 8E
> {206} normal block at 0x01832468, 192 bytes long.
>  Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1
> {202} normal block at 0x01832158, 72 bytes long.
>  Data: <    8*  0   a   > 00 06 00 00 38 2A 83 01 30 00 00 00 61 00 00 00
> {201} normal block at 0x01832108, 20 bytes long.
>  Data: < .  0   a       > D0 2E 83 01 30 00 00 00 61 00 00 00 00 00 00 00
> {200} normal block at 0x018320B8, 20 bytes long.
>  Data: < 1  0   0       > E0 31 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {198} normal block at 0x01832010, 4 bytes long.
>  Data: <    > 02 00 00 00
> {197} normal block at 0x01831F10, 192 bytes long.
>  Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1
> {196} normal block at 0x01831EC0, 20 bytes long.
>  Data: <                > 10 20 83 01 01 00 00 00 01 00 00 00 00 00 00 00
> {195} normal block at 0x01831E70, 20 bytes long.
>  Data: <    0   0       > 10 1F 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {194} normal block at 0x01831E28, 12 bytes long.
>  Data: <@           > 40 1D 83 01 00 00 00 00 08 00 00 00
> {193} normal block at 0x01831DD8, 16 bytes long.
>  Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> {192} normal block at 0x01831D88, 20 bytes long.
>  Data: <                > 00 00 00 00 D8 1D 83 01 00 00 00 00 04 00 00 00
> {191} normal block at 0x01831D40, 12 bytes long.
>  Data: <            > 08 00 00 00 88 1D 83 01 00 00 00 00
> {190} normal block at 0x01831CC0, 64 bytes long.
>  Data: <(               > 28 1E 83 01 00 00 00 00 00 00 00 00 00 00 00 00
> {189} normal block at 0x01831C20, 96 bytes long.
>  Data: <    `>L @>L     > C0 1C 83 01 60 3E 4C 00 40 3E 4C 00 08 00 00 00
> {188} normal block at 0x01831B98, 76 bytes long.
>  Data: <        p       > 00 00 00 00 00 00 00 00 70 1E 83 01 C0 1E 83 01
> Object dump complete
>
> Any help in this regard is highly appreciated



Start here:
http://msdn2.microsoft.com/en-us/library/c99kz476(VS.80).aspx
http://www.codeproject.com/cpp/MemLeakDetect.asp
http://www.devx.com/DevX/Tip/20465

---
Ajay

0
ajaykalra (6842)
3/10/2007 2:10:26 PM
In message <A20C3D57-825E-469D-A39E-79F14790DDEA@microsoft.com>, Albert 
<Albert@discussions.microsoft.com> writes
>Hi,
>
>I have mfc dialog based application which launches a wizard. On running the
>application in debuAfter the wizardFinish VS2005 output windows a few memory
>leaks but the filename is not mentioned.
>
>How can I find where memory leak has happened?

Memory Validator. 30 day eval.

http://www.softwareverify.com/cpp/memory/index.html
http://www.softwareverify.com/testimonials.html

Stephen
-- 
Stephen Kellett
Object Media Limited    http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
Reg Office: 24 Windmill Walk, Sutton, Ely, Cambs CB6 2NH.
0
snail (185)
3/12/2007 2:35:32 PM
Download BoundsChecker. Compile your source code by enabling
boundchecker detection. Then debug through the possible paths. Finally
exit your application. Boundechecker will list the leak detected and
the culprit source code.




On Mar 10, 5:23 pm, Albert <Alb...@discussions.microsoft.com> wrote:
> Hi,
>
> I have mfc dialog based application which launches a wizard. On running the
> application in debuAfter the wizardFinish VS2005 output windows a few memory
> leaks but the filename is not mentioned.
>
> How can I find where memory leak has happened?
>
> Detected memory leaks!
> Dumping objects ->
> {2060} normal block at 0x01835A30, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {2044} normal block at 0x018387B8, 244 bytes long.
>  Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F
> {2036} normal block at 0x01838028, 39 bytes long.
>  Data: <     |  +P      > 17 10 10 00 04 7C 83 01 2B 50 83 01 00 CD CD 00
> {2025} normal block at 0x01837D40, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {2008} normal block at 0x018380B0, 244 bytes long.
>  Data: <1  r  +   E  }  > 31 D0 BA 72 93 9B 2B D7 83 F0 45 D0 08 7D 0C 7F
> {1990} normal block at 0x018377A8, 244 bytes long.
>  Data: < b`   /$    :D  > 80 62 60 03 98 9D 2F 24 93 CC 06 97 3A 44 96 16
> {1910} normal block at 0x01837E70, 192 bytes long.
>  Data: <   1      +\ N  > A2 A5 D5 31 82 8D 0C A2 89 A3 2B 5C EC 4E BC D1
> {1909} normal block at 0x01834D00, 20 bytes long.
>  Data: <p~  0   0       > 70 7E 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {1861} normal block at 0x018329B8, 36 bytes long.
>  Data: <                > 98 10 00 00 02 00 00 00 7F 00 00 01 00 00 00 00
> {1816} normal block at 0x01832ED0, 388 bytes long.
>  Data: <   J   Q   }q   > E5 F7 96 4A FB 9D A5 51 E7 B4 EE 7D 71 02 C2 81
> {1809} normal block at 0x018331E0, 192 bytes long.
>  Data: <  _VE mmH*F vi m> 8C 18 5F 56 45 EF 6D 6D 48 2A 46 A2 76 69 C3 6D
> {231} normal block at 0x01832A38, 388 bytes long.
>  Data: <   2}   s Gg!>  > E0 95 C6 32 7D D2 15 F1 73 8C 47 67 21 3E 0E 8E
> {206} normal block at 0x01832468, 192 bytes long.
>  Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1
> {202} normal block at 0x01832158, 72 bytes long.
>  Data: <    8*  0   a   > 00 06 00 00 38 2A 83 01 30 00 00 00 61 00 00 00
> {201} normal block at 0x01832108, 20 bytes long.
>  Data: < .  0   a       > D0 2E 83 01 30 00 00 00 61 00 00 00 00 00 00 00
> {200} normal block at 0x018320B8, 20 bytes long.
>  Data: < 1  0   0       > E0 31 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {198} normal block at 0x01832010, 4 bytes long.
>  Data: <    > 02 00 00 00
> {197} normal block at 0x01831F10, 192 bytes long.
>  Data: <        's#  lt > FF FF FF FF FF FF FF FF 27 73 23 CA 08 6C 74 F1
> {196} normal block at 0x01831EC0, 20 bytes long.
>  Data: <                > 10 20 83 01 01 00 00 00 01 00 00 00 00 00 00 00
> {195} normal block at 0x01831E70, 20 bytes long.
>  Data: <    0   0       > 10 1F 83 01 30 00 00 00 30 00 00 00 00 00 00 00
> {194} normal block at 0x01831E28, 12 bytes long.
>  Data: <@           > 40 1D 83 01 00 00 00 00 08 00 00 00
> {193} normal block at 0x01831DD8, 16 bytes long.
>  Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> {192} normal block at 0x01831D88, 20 bytes long.
>  Data: <                > 00 00 00 00 D8 1D 83 01 00 00 00 00 04 00 00 00
> {191} normal block at 0x01831D40, 12 bytes long.
>  Data: <            > 08 00 00 00 88 1D 83 01 00 00 00 00
> {190} normal block at 0x01831CC0, 64 bytes long.
>  Data: <(               > 28 1E 83 01 00 00 00 00 00 00 00 00 00 00 00 00
> {189} normal block at 0x01831C20, 96 bytes long.
>  Data: <    `>L @>L     > C0 1C 83 01 60 3E 4C 00 40 3E 4C 00 08 00 00 00
> {188} normal block at 0x01831B98, 76 bytes long.
>  Data: <        p       > 00 00 00 00 00 00 00 00 70 1E 83 01 C0 1E 83 01
> Object dump complete
>
> Any help in this regard is highly appreciated


0
fermisoft (7)
3/13/2007 8:02:00 AM
Reply:

Similar Artilces:

MultiWorkbook Change Event Detection / Spell Checker
Excel 2003 or 2007. Looking to be able to force spell checking whenever any cell content is is changed. I've been successful on a single workbooks by adding Spell Check execution on Worksheet_Change. I'm hoping to take this one step further - make it an 'Add-In' so the check will run for any workbook. It looks like the Worksheet_Change event only triggers for the host workbook so an 'Add-in' will not do the job. Any suggestions to force spell checking on a change for any workbook/worksheet I modifiy? TIA, - Pat The way I would go about this i...

How to detect changes in a column?
If I have a table with sales forecast data (columns) like Customer, Amount and Status, what would be the best way to track changes in this table so I can compare my forecast week after week? -- inomata ------------------------------------------------------------------------ inomata's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=18938 View this thread: http://www.excelforum.com/showthread.php?threadid=493571 ...

detect and repair
my outlook 2002 had some hyperlink problems which were corrected when i used the 'detect and repair' option in help. now i have lost my addresses and all the e-mail that was in my inbox. How do i recover these items? Check this page for all you need to know: http://www.slipstick.com/config/backup.htm -- Aloha, -Ben- Ben M. Schorr, OneNote-MVP http://home.hawaii.rr.com/schorr **I apologize but I am unable to respond to direct requests for assistance. Please post questions and replies here in the newsgroup. Mahalo! "Mark Conner" <mdconner@prodigy.net> wrote ...

Duplicate detection detecting inactive records?
Is there any way to configure duplicate detection to not look at inactive records? I can't find any way to set this on the rules. Thank you! ...

How to Detect and prevent CD burn
HI, How can i stop to CD burn of any file from my system to CD.How to detect the event of CD burn and how can i stop CD burn.Basically i want to secure my file from CD burn. plz reply soon. regds vinay sheel vinays@aditi.com Vinay wrote: > HI, > How can i stop to CD burn of any file from my system to CD.How to detect the > event of CD burn and how can i stop CD burn.Basically i want to secure my > file from CD burn. You can restrict access to a file only to a certain users through NT/win200 access privileges. You can encrypt a file and therefore restrict access to a file on...

MSAccess Error Message
Hi, I have just spend a couple of weeks developing a report with graphics (from sub forms) and text. All along i have been able to print this both to a printer and to pdf. I have now run into a problem that says that there is not enought memory. I have tried on a few machines with lots of space and the error is the same. It is an MSAccess error not a system error. All information is displayed perfectly in the preview the problem is only when i press print. I am using Access 2003 professional. Appeciate any help on this. ...

My Computer not detecting my external harddrive
I have a IDE hard drive with USB casing and connected to my USB port. The problem is the hard drive partitions are not shown up in My computer. But My Computer->Manage->Storage->Disk management shows the hard drive with 3 partitions and all the three are healthy.I know there are a few bad sectors. I am sure I have not made any changes in registry that prevents drives from being shown. Please help me. Do the partitions have drive letters assigned? karthikaravind wrote: > I have a IDE hard drive with USB casing and connected to my USB port. > The problem is the ha...

GUID is not detected by server .& cannot go offline...SFO.
why is the server not detecting the GUID attached to the subject line of email...what could be the problem... Also i am not able to go offline ..I get an error Domain canot be contacted or does not exist... Any sugestions... Thanks a million. ...

Exchange Server 2003 Memory
Hello everyone. We currently use an HP ProLiant DL380 G3 server to run Exchange Server 2003 Enterprise Edition (v6.5 Build 7638.2, SP2). It has four gigabytes of RAM and is running Windows Server 2003 Standard (Build 3790.srv03_sp1_rtm) with SP1 and all hotfixes and updates. We host 535 total mailboxes and 42 total public folders on this server. Mailbox store limits are set to issue warning at 245,760 K and prohibit send at 256,000 K. We also keep 60 days of deleted items and 60 days of deleted mailboxes, and we do not permanently delete mailboxes and items until the store has been bac...

Memory Leaks in COleDropTarget::OnDrop
Hi together, creating a new struct in OnDrop(), I cannot delete this object later on without getting my Application to crash down. I don't know why!? In my code _drag_drop_data_from_in_list is a struct with simple self built data-members like Int, CStrings. In my code it is also not possible to delete the pointer after ending the Drag&Drop action, it will also crash down! Later on I pass the code snippet of my OnDrop()code! Thanks in Advance Daniel HGLOBAL hmem = pDataObject->GetGlobalData( nCF_VISIT_FROM_LISTCTRL ); _drag_drop_data_from_in_list bfVisitStruct; CMemFile sf(( ...

Mic not detected
I upgraded from Vista to W7 when it first came out. I have just recently realized that it apparently cut off the mic and I cannot record anything. I can still hear cd's.etc. I did not discover this until I tried to send a video message to my son who just got deployed to Iraq. Dell customer support has been useless thus far. Thanks for any suggestions as to how to fix this problem. On May 17, 11:51=A0am, "andy jones" <jandy78...@aol.com> wrote: > I upgraded from Vista to W7 when it first came out. I have just recently > realized that it apparently cut...

Bypassing the 128MB formula memory limitation in 2002?
I have several users that need to open 5 different spreadsheets, all linked to each other, but keep encountering the "Excel cannot complete this task with available resources. Choose less data or close other apps." My research has indicated this is due to the built in limitation of 128MB for formula memory in Excel 2002. Unfortunately, using Excel 2003 is out of the question due to a third party app conflict (the 3rd part app is necessary and does not function in Excel 2003). Naturally Excel 2003 testing has shown no issue in opening all 5 spreadsheets at the same time. I have tri...

detecting which control has focus
I have an application that I am writing and I need to be able to detect which control has focus (I am using edit controls). I figured out how to set the focus by creating a member control variable and using the setfocus() function, but how do detect which control has focus? There is a getfocus() in the control member variable, but I have been unsuccessful in using it? I am using the PreTranslateMessage(MSG* pMsg) function to detect when the Return key is pressed and then I automatically go the the next edit control, but I want to do different code depending on which Edit control has focus a...

Cannot detect previous login you need to run frontstep crm at least once
We have a user who was on extended leave for a few months and now when ever he opens up outlook 2000 sr-1 on his computer (Windows 98se) he gets a message that "Cannot detect previous login you need to run frontstep crm at least once. Front step outlook extension will be disabled for current outlook session." When I say OK you get another message that "The add-in "psExcExt.dll" could not be installed or loaded. This problem may be resolved by useing detect and repair in the help menu. Unable to load "psExcExt.dll" you may be out of memory or out ...

Memory Usage
I'm currently running a Exchange 2003 Server on a Win2k3 EE system, however I'm looking for a way to get the memory usage of store.exe reduced (significantly). It seems this service allocates the entire mailbox of users into its memory, leaving me with little for the many other services the system runs. Is there any way to reduce the memory use of Exchange, perhaps with the Windows System Resource Manager, limiting the working set? - Joris This is the default configuration of Exchange and by design allows Exchange to run faster. The store.exe process with 'share' memory ...

Automation and memory corruption
I am working on an automation project between Access and Excel. I have read about the problem of "Ghost" copies of Excel being resident in memory when a program is run multiple times and the errors that it can cause. I have read the Microsoft explanations about the two causes: 1- an improper reference that is not fully qualified - e.g. xlSheet.Range(Cells(1, 1), Cells(10, 2)).Value = "Hello" NOTE: The error occurs because the code refers to the Cell's method without preceding the call with the xlSheet object variable. 2 - an improper with - end with construct ...

Record is locked (deadlock was detected)
when trying to run a CM Transaction I get "A get/change next operation on table 'CM_Transaction' deadlock was detected. when I click on more details i am given the following. [microsoft][ODBC SQL Server Driver][SQL Server] Transaction (process ID 77) was deadlocked on thread | communication buffer resources with another process and has been chosen as the deadlock victim. Return the transaction. currently I have ensured that no one is logged in. I view the odb.dex_lock table in the tempDB and cleared it. At this point I can run a reconciliation with no errors where I ...

Microsoft Money 2002 Not enough memory
Each time I try to open MS Money 2002 on my PC I get an error telling me there's not enough memory and to close other applications. In most cases I don't have any other applications up and running. Additionally I have 512MB of RAM so I think I should be OK. Any suggestions? In microsoft.public.money, <anonymous@discussions.microsoft.com> wrote: >Each time I try to open MS Money 2002 on my PC I get an >error telling me there's not enough memory and to close >other applications. > >In most cases I don't have any other applications up and >r...

Intrusion detection
I have an employee who I think is tapping into my mailbox. In Admin, under Mbx resources, her name is attached to my account periodically. The logon time was attached to my mailbox for 10 minutes or so, then after logoff, she logged directly onto hers. She also mentioned something to me the other day that could only have been known by reading an email in my inbox. She has Service Account admin in Exchange at the Server, Site, and Container levels. How can I find out definitively if she is looking at my mail? Thanks!! Change her permissions - any reason she (or anyone) needs ser...

memory allocation during hw initialize in storport miniport
hi, as HW initialize routine runs @ DIRQ level it is not possible to allocate memory. what if i allocate memory in HwStorPassiveInitRoutine( )? is it allowed to allocate memory? i am trying to allocate in HwStorPassiveInitRoutine but system crashes, does anybody have any idea? ~hitesh On Aug 26, 10:19=A0am, hitesh <hitesh.ughr...@gmail.com> wrote: > hi, > as HW initialize routine runs @ DIRQ level it is not possible to > allocate memory. > what if i allocate memory in HwStorPassiveInitRoutine( )? > is it allowed to allocate memory? > i am trying to alloc...

memory allocation error,
Hi IP_ADAPTER_INFO *adapt_info; ULONG size; /* trying with only one interface */ size = sizeof(IP_ADAPTER_INFO); adapt_info = malloc(size); status = GetAdaptersInfo(adapt_info, &size); if (status != ERROR_SUCCESS) { /* not enough space */ free(adapt_info); adapt_info = malloc(size); status = GetAdaptersInfo(adapt_info, &size); } This is the error I am getting while allocating memory on line adapt_info = malloc(size) error C2440: '=' : cannot convert from 'void *' to 'struct _IP_ADAPTER_INFO *' In MFC is malloc function can be used? Hello, y...

How to setup MFC memory leak detection
Hi, All of my past projects have been begun as generic MFC applications, and I'm used to getting object dump messages when I close an app that has memory leaks. Right now, however, I'm working on an app that did not start out as an MFC app (it's actually a visual studio project generated by the Qt code generator, though I don't think that matters here); rather, it's a general C++ project. My question is: how do I setup whatever is needed so that I can get back those nice object dump messages. I've already altered the project settings to include MFC. What else do I need...

CString leak when serializing
Hi all, I monitor my app using Memory Validator and it reports several leaks at strcore.cpp line 118. Here is an example of the call stack (latest at the top) CString::AllocBuffer (strcore.cpp line 118) CString::GetBuffer (strcore.cpp line 493) CString::GetBufferSetLength (strcore.cpp line 521) operator>> (arccore.cpp line 245) operator>> (my_own_file.cpp line xyz) // first of my own files In my own file I basicly do CString str; archive >> str; // archive is a CArchive object I am reading // work with str from now on.... The archive is created elsewhere like this CFil...

Ftp : how to detect a Time Out
Hello everybody, I use MFC classes CInternetSession and CFtpConnection to open a permanent connection to a ftp server. But this server disconnect me after a given time. Can I detect a time out from the server on the client side (my code !) ? Or should I test directly an internet handle ? Thanks very much for your help. cyril.delmas@gmail.com wrote: > I use MFC classes CInternetSession and CFtpConnection to open a > permanent connection to a ftp server. But this server disconnect me > after a given time. Can I detect a time out from the server on the > client side (my code !) ? ...

Can sumif detect text strings or detect if a dollar sign $ is in a cell?
Hi, I copied my online bank statement into excel, and it's all in one column. I want excel to only sum those cells which contain a dollar sign and ignore the banks comment and date cells in the sum. I tried =SUMIF(A1:A500,"$") AND ALSO =SUMIF(A1:A500,"$",A1:A500) I just get 0 for the result. Anyone know how to get sumif to match on a character like the dollar sign? Seems like this would be an obvious and functional use for this function eh? Thanks! Love, Me Hi the dollar sign is probably created by a format? If this is true you can't check for this sign....