|
i have the same problem and currently downloading intel Vtune evaluation copy
lets see if it helps
|
|
|
|
|
Hello, is it (Vtune) really useful for C# code ? I di not see any feature in VTUNE so that i Know exactly which code segment is taking more CPU time ? I know VTUNE support C language, but I did not see any C# supports. When I tried to see the code, VTUNE exposed me the ASSEMBLY code for the given EXE file. Obviously seeing Assembly code will not make any sense for me to debug High Level C# code, aint i right ?
would you Please let me know if I can make it useful for c# ?
|
|
|
|
|
bashiwala wrote: Obviously seeing Assembly code will not make any sense for me to debug High Level C# code
Why?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
its working now its integrated in vs ide and it shows the code and lots of other information i need to study more what it shows but its working perfectly with c# however it require more ram and processor speed so it will be better to increase virtual memory before hand
to know how it works please read the tutorial attached with VTune demo it is of about one hour
|
|
|
|
|
I try starting it after installing but my system get crashed every time
please let me know if you get a better option
|
|
|
|
|
For figuring out the CPU time used by each thread, I'd suggest using Process Explorer[^]. It allows you to drill down into threads and watch CPU time.
To find the contention rate among threads, you can use Perfmon (type perfmon.msc at the command prompt). The ".NET CLR LocksAndThreads" Performance Object has "Total # of contentions" and "Contention Rate/sec" counters, you need to just add them, making sure you select your process from the processes list on the right.
Hope this helps.
|
|
|
|
|
Hi, what about Rational PurifyPlus ?
Regards
|
|
|
|
|
hi all
I have made a exe file in c# but when ever i try to execute it gives me the error The application failed to initialize.error code (0xc0000135).
Kindly suggest me he soution for the same thanks a lot in advance.
Thanks and regards
Sankalp Verma
|
|
|
|
|
sanki779 wrote: Kindly suggest me he soution for the same thanks a lot in advance.
Why don't you type the same into your favourite search engine. I did and I got the answer on the first hit: "the most likely cause is that the machine you are using does not have the Microsoft .NET Framework installed"
|
|
|
|
|
Thanks for such a promt reply.,,,,,,,,,,,,,
so does that means that where ever i need to run the that exe i need to install the .net framework first os there any otherwork around?
i m saying this because i need to run this exe on around 500 computer and it is not a easy job to install .net framework on all of them.
Kindly suggest some workaround?
Sankalp Verma
|
|
|
|
|
You will have to install the .NET framework on all of them.
|
|
|
|
|
sanki779 wrote: m saying this because i need to run this exe on around 500 computer and it is not a easy job to install .net framework on all of them.
Kindly suggest some workaround?
To run a C# / .NET application, you need the .NET framework installed on all machines that run the app.
There are some very expensive products that will link the .NET framework into your app, do a google for .NET linker.
|
|
|
|
|
there are some ads over here of grasshopper see it if they can help
|
|
|
|
|
Or rewrite it in a none .NET language.
If it is to run as a Windows Form app on .NET, then you need the .NET runtime installed.
Alternatively, you could develop it as an ASP.NET application which would only need the .NET runtime installed on the web server.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I'm sure it can't be too difficult but I can't seem to figure out how to invoke an instance of Internet Explorer from my application in C#.
I would also then need to kill the instance of IE after a certain event in the main program.
Any advice please?
|
|
|
|
|
starting IE is simple,
Process.Start("iexporer");
or if you want e certain URL
Process.Start("http://www.codeproject.com");
but this will open the page in your default browser
Opening IE using an url
Process.Start("iexporer", "http://www.codeproject.com");
I thought IE runs in a single process, so killing IE will not only stop the 'started' instance, but the entire IE process. (I don't know if this also counts for IE7, haven't got it installed) so killing er certain instance of IE will be a more difficult story. Do you only want to kill the started instance, or the entire IE process??
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Good grief! Could you believe that it turns out to be that easy!?!? I almost feel stupid now for even asking the question, but thanks.
As for killing the instance, it doesn't really matter. Come to think of it, I would actually prefer if the entire IE process is killed.
|
|
|
|
|
That would look something like this
System.Diagnostics.Process procIe = System.Diagnostics.Process.GetProcessesByName("iexplorer");<br />
procIe.Kill();
I suggest using the System.Diagnostics namespace in stead of typing them all over the place, and maybe the process name does not match IE, but I think i'm pretty close
Cheers, have a good weekend!
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Hi,
I need help about how to know the logged in user on another machine on the network.
Thanks
|
|
|
|
|
hi,
I think you have to query the active directory to get the logged in user.
try searching on the active directory.
best regards,
note: I am lebanese too
jamil abou khalil
|
|
|
|
|
|
hi,
does anybody know how to edit users or insert a new user to the active directory using the LDAP connection string.
Thanks in advance
jamil abou khalil
|
|
|
|
|
The place to start would be looking at the System.DirectoryServices namespace. Possibly the DirectoryEntry class would be of help to you.
only two letters away from being an asset
|
|
|
|
|
How i can rename File form code ?
|
|
|
|
|
FileInfo.MoveTo should do the trick
|
|
|
|