Click here to Skip to main content
14,176,451 members

Managed C++/CLI

 
QuestionData Shifting on Some Computers Pin
Erich Ruth3-May-19 6:18
memberErich Ruth3-May-19 6:18 
QuestionHandle leak in application complied with CLR option. Pin
atm.menon2-May-19 0:15
memberatm.menon2-May-19 0:15 
In my C++ application, I have added CLR support((/clr) to use WCF communication.

Everything is working well, but i observed handle leak. When I analyze this with WinDbg(!htrace). Its shows handle leaks in .NET libs as shown below.

Handle = 0x0000000000003300 - OPEN
Thread ID = 0x0000000000004dbc, Process ID = 0x000000000000414c

0x000000007785a30a: ntdll!ZwCreateThreadEx+0x000000000000000a
0x000007fefd37ac73: KERNELBASE!CreateRemoteThreadEx+0x0000000000000163
0x00000000776e57a6: KERNEL32!CreateThread+0x0000000000000036
0x000007fedaf3f0aa: clr!ClrCreateManagedInstance+0x000000000001ae0a
0x000007fedaf3efb8: clr!ClrCreateManagedInstance+0x000000000001ad18
0x000007fedaf3f5e3: clr!ClrCreateManagedInstance+0x000000000001b343
0x000007fedaf3f623: clr!ClrCreateManagedInstance+0x000000000001b383
0x000007fedaeb3b5e: clr!PreBindAssemblyEx+0x0000000000007e5e
0x000007fedae0a05f: clr!LogHelp_LogAssert+0x000000000000525f
0x000007fedae0837c: clr!LogHelp_LogAssert+0x000000000000357c
0x000007fedae08125: clr!LogHelp_LogAssert+0x0000000000003325
--------------------------------------
Handle = 0x00000000000032fc - OPEN
Thread ID = 0x0000000000004dbc, Process ID = 0x000000000000414c

0x0000000077859d0a: ntdll!ZwCreateEvent+0x000000000000000a
0x000007fefd372d15: KERNELBASE!CreateEventExW+0x0000000000000065
0x000007fedaf3db8a: clr!ClrCreateManagedInstance+0x00000000000198ea
0x000007fedaf3dd27: clr!ClrCreateManagedInstance+0x0000000000019a87
0x000007fedaf3f077: clr!ClrCreateManagedInstance+0x000000000001add7
0x000007fedaf3efb8: clr!ClrCreateManagedInstance+0x000000000001ad18
0x000007fedaf3f5e3: clr!ClrCreateManagedInstance+0x000000000001b343
0x000007fedaf3f623: clr!ClrCreateManagedInstance+0x000000000001b383
0x000007fedaeb3b5e: clr!PreBindAssemblyEx+0x0000000000007e5e
0x000007fedae0a05f: clr!LogHelp_LogAssert+0x000000000000525f
0x000007fedae0837c: clr!LogHelp_LogAssert+0x000000000000357c
0x000007fedae08125: clr!LogHelp_LogAssert+0x0000000000003325
0x000007fedaeb5abf: clr!PreBindAssemblyEx+0x0000000000009dbf
0x00000000776e571d: KERNEL32!BaseThreadInitThunk+0x000000000000000d
--------------------------------------
Handle = 0x00000000000032f8 - OPEN
Thread ID = 0x0000000000004dbc, Process ID = 0x000000000000414c

0x0000000077859d0a: ntdll!ZwCreateEvent+0x000000000000000az
0x000007fefd372d15: KERNELBASE!CreateEventExW+0x0000000000000065
0x000007fedaf3db8a: clr!ClrCreateManagedInstance+0x00000000000198ea
0x000007fedaf3dd19: clr!ClrCreateManagedInstance+0x0000000000019a79
0x000007fedaf3f077: clr!ClrCreateManagedInstance+0x000000000001add7
0x000007fedaf3efb8: clr!ClrCreateManagedInstance+0x000000000001ad18
0x000007fedaf3f5e3: clr!ClrCreateManagedInstance+0x000000000001b343
0x000007fedaf3f623: clr!ClrCreateManagedInstance+0x000000000001b383
0x000007fedaeb3b5e: clr!PreBindAssemblyEx+0x0000000000007e5e
0x000007fedae0a05f: clr!LogHelp_LogAssert+0x000000000000525f
0x000007fedae0837c: clr!LogHelp_LogAssert+0x000000000000357c
0x000007fedae08125: clr!LogHelp_LogAssert+0x0000000000003325
0x000007fedaeb5abf: clr!PreBindAssemblyEx+0x0000000000009dbf
0x00000000776e571d: KERNEL32!BaseThreadInitThunk+0x000000000000000d

Am using VS 2015 and .Net version is 4.5.2.

Is this an issue in .NET? Any help and or suggestions you may have would be greatly appreciated, Thanks

Arun Menon
QuestionGeneric List Template, Function Parameter Pin
Brennan Salibrici24-Apr-19 1:09
memberBrennan Salibrici24-Apr-19 1:09 
AnswerRe: Generic List Template, Function Parameter Pin
Richard MacCutchan24-Apr-19 1:56
protectorRichard MacCutchan24-Apr-19 1:56 
AnswerRe: Generic List Template, Function Parameter Pin
11917640 Member 2-May-19 3:44
member11917640 Member 2-May-19 3:44 
QuestionLocationApi.dll having issue while trying to fetch location. Pin
Anurag__4-Mar-19 19:29
memberAnurag__4-Mar-19 19:29 
QuestionRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan4-Mar-19 21:51
protectorRichard MacCutchan4-Mar-19 21:51 
AnswerRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__12-Mar-19 20:45
memberAnurag__12-Mar-19 20:45 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan12-Mar-19 22:20
protectorRichard MacCutchan12-Mar-19 22:20 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__14-Mar-19 21:13
memberAnurag__14-Mar-19 21:13 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan14-Mar-19 23:05
protectorRichard MacCutchan14-Mar-19 23:05 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__14-Mar-19 23:26
memberAnurag__14-Mar-19 23:26 
NewsC++/CLI + /std:c++latest is broken in VS 2017 15.9.6 Pin
John Schroedl14-Feb-19 4:22
professionalJohn Schroedl14-Feb-19 4:22 
Questionwhere to include new class in c# , windows forms, visual studio Pin
Member 1412466126-Jan-19 5:50
memberMember 1412466126-Jan-19 5:50 
AnswerRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 3:03
protectorRichard MacCutchan8-Feb-19 3:03 
SuggestionRe: where to include new class in c# , windows forms, visual studio Pin
Richard Deeming8-Feb-19 6:15
mveRichard Deeming8-Feb-19 6:15 
GeneralRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 22:40
protectorRichard MacCutchan8-Feb-19 22:40 
QuestionHow to format DATETIME Pin
Member 1412466121-Jan-19 0:56
memberMember 1412466121-Jan-19 0:56 
AnswerRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 1:57
protectorRichard MacCutchan21-Jan-19 1:57 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 2:42
memberMember 1412466121-Jan-19 2:42 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 2:44
protectorRichard MacCutchan21-Jan-19 2:44 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:30
memberMember 1412466121-Jan-19 3:30 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 3:48
protectorRichard MacCutchan21-Jan-19 3:48 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:57
memberMember 1412466121-Jan-19 3:57 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 4:52
protectorRichard MacCutchan21-Jan-19 4:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190525.1 | Last Updated 2 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid