In Windows, please any one can help me to find out the memory leak using GlowCode Tool.
I am trying to add the dll but m not able to find the proper function or class where exactly memory getting leak. we are created COM DLL and we written some function and trying to export those functions in to VC++ mfc dll Application.
please provide how to use the GLowCode tool when we need to find the memory leak in com dll
Advance Thanks
Manohar Kumar A
There is a help document associated with GlowCode. It has step by step guide to use Glowcode. Have you tried that?
Related
Please can anyone shed light on this.
I have a program that uses the outlook interop assemblies, part of this is quite slow, and I would like to use native unmanaged c++ to manipulate the com object(s) for some more intensive work.
inline Microsoft::Office::Interop::Outlook::_Application^ OutlookApp()
{
return dynamic_cast(HostApplication);
}
What I would like to do is pass the above returned outlook object from that routine maybe with manipulation or pinning to an unmanaged c++ routine and then manipulate it as the underlying native com object so i get the speed of unmanaged com. I am wondering how this could be done, or would this get marshalled back and forth even more than in managed c++.
Is this even possible and if so how, or is there something I do not understand about the concept and interop?
It's the process boundaries I assume managed c++ is still not in process to office apps. Therefore still pretty slow. Looks like a good reason to use Delphi.
I would like to use native unmanaged c++ to manipulate the com object(s) for some more intensive work
But you don't use unmanaged C++, instead C++/CLI (managed C++) is used:
Microsoft::Office::Interop::Outlook::_Application^ OutlookApp()
{
return dynamic_cast(HostApplication);
}
If you need to avoid using .net framework I'd suggest developing unmanaged COM add-in which implements the IDTExtensibility2 interface or standalone application.
I have developed an app using C# which loads a Cplex model to resolve a linear system (or program if it's spelled so).
the problem that I get is the error motioned in the title.
but when I try solving a problem using the model in Opl studio 9.0 it works fine.
I don't know if the version is limited or there is a problem with C#.
if there is any one who could I help I'll appreciate it.
is there any way I can load a Cplex model from C# without filling it up manually (by code).
Yes. Take a look at examples in Program Files\IBM\ILOG\CPLEX_Studio_Preview1251\cplex\examples
I am working on a VC++ DLL that uses SWIG (Simplified Wrapper and Interface Generator) for C#. The DLL does not use ATL or MFC, it is set to use only the Standard Windows Libraries. Now because of some memory issues, I want to output formatted messages from functions to a log file. What are the different way to do that? Is there a pre-existing trace class that I can use?
I know just 3 different ways to do it:
Use one of the existing log libraries for C++. This is the most flexible approach since you can profit from many nice features like formatting, different appenders etc
Use OutputDebugString function. This function sends message to the debugger, but does not put it to any file by default.
Implement your own simple logger
I hope this helps.
I used Reflector 6.8 to disassemble a binary. It shows the Class tree view. Even the declaration of methods of the classes , but "Expand Methods" errors out with some error like "Block statement count of 0 during conditional expression translation"
Then I tried to use Telerik's JustDecompile (in Beta), it worked fine for 1 of the 10-15 assemblies i have. But for another assembly it simply shoots up in memory to 1.5 GB and hangs.
Is there any other stable decompiler I can use to generate C# code ?
The only other one that I know of is IL Spy.
You should report errors in Reflector to the guys at Red Gate.
The no-op loops were probably added by some obfuscator.
Based upon the available information, I believe you may be using an obfuscated assembly.
The current Telerik JustDecompile beta (2011.1.728.1) does not offer support for decompiling obfuscated assemblies. It is very efficient at decompiling non-obfuscated assemblies, though, and its memory footprint is getting smaller with every update. The memory usage you observed is unusual. If you can share more detail over email about the assembly you’re using, we’ll try to reproduce and fix this specific case (chris.eargle [at] telerik.com).
Meanwhile, if you’d like to see more support in future JustDecompile updates for obfuscated assemblies, please share your feedback on the JustDecompile UserVoice so others can vote for the idea: http://justdecompile.uservoice.com.
I've got a c# app that uses a large amount of memory. I'd like to track down what objects are using the most memory so that I can optimize things a little more. Is there a tool that can help out with this? Something that would allow me to know what objects/variables/etc are using ram and how much?
Thanks in advance.
After looking at what I did with VS2010, you may have the Analyze menu. If so, then you can use this to get some information that may help.
But, as this question pointed out, it is slow, and generates huge files.
VS2010 .NET Memory Analysis - extremely slow
So, you will want to look at the various options and try the one that will best help you find just what you want.