|
I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?
|
|
|
|
|
chandni_chandrakant_maheta wrote: I need to get notification when that process will write or modify any thing on the hard disk.
There is no such notification. You'd have to inject hooks into all the I/O functions in the Win32 API to handle this, kind of like how FileMon does it.
chandni_chandrakant_maheta wrote: Can any one guide me or give me any demo code for this?
You probably won't find any specific to this application. No, I don't have any links or examples myself.
|
|
|
|
|
Thanks for your reply.
Dave Kreskowiak wrote:
You'd have to inject hooks into all the I/O functions
Can you please give me any sample code or any article from where I can know how to inject hooks for an I/O function.
|
|
|
|
|
|
Hi.
This morning tried to run an aplication running under .NET 1.1 at the same time i was developing something in 2.0. But all sites configured in IIS6 gave me errors, for .NET framework 1.1 version. I made a restart (iisreset) and launched first 2.0 web site containing all aplications under that framework version, and all of them worked.
If i repeat the process but first initialize aweb aplications under 1.1 net framework website, those aplications works but the ones on 2.0 net framework doesn't.
This is normal? I'm a newbie yet, but i'm hungry to learn more.
Thanx in advance everybody.;P
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
|
|
|
|
|
You have to make 2 different Application Pools(App1 and App2), set the ASP.NET 1.1 sites to run on the App1 pool and ASP.NET 2.0 on the App2 pool.
http://stefanprodan.wordpress.com
|
|
|
|
|
Thank you Stefan. I guess i need less gaming and more IIS training. I'll make sure to learn begining from the basis and not to just jump into the last chapert.
Thanks again mate.
Leistath;)
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
|
|
|
|
|
The fundamental problem here is that you can only load one version of the Common Language Runtime (CLR, the actual execution engine of the .NET Framework) into a process. The first version to load wins - subsequent attempts to load a different version are simply ignored.
IIS 6.0 uses the W3WP.EXE (W3 [World Wide Web] Worker Process) executable to run ASP.NET code. It knows how to host the CLR. IIS 5.x does not natively understand .NET and uses a different model, loading a DLL into its regular worker process, which in turn launches an ASPNET_WP.EXE process, but significantly, different versions of .NET launch their own separate worker processes so the clash does not occur.
So what you have to do is to ensure that the .NET 2.0 and .NET 1.1 applications do not share a worker process. You do this, as the other reply says, by defining a new application pool and assigning the .NET 2.0 applications to that. Or you can do it the other way round if you like, placing the 1.1 applications in the new application pool.
|
|
|
|
|
Well what can i say. A perfect answer might say. Too much books about this kind of topic doesn't explain this technical fact in so few lines and at the same time so clearly. I'm on the right path now.
Thank you Mike, great explanation! Right now i'm hungry for knowledge hahahaah.
Cheers.
Leistath
"I hated myself... no, I hated my place in the world" - From Jerry Maguire
|
|
|
|
|
If you want to know what's going on at the low levels of the .NET Framework, Jeffrey Richter's book "CLR via C#" is a good one. I have the first edition of this book, titled "Applied Microsoft .NET Framework Programming". I've not re-read it in a while - I have a good memory for crazy technical detail - but it was a great introduction to the CLR when I first started .NET programming.
I can't recall where I first heard about the two-frameworks-in-one-process problem. It might have been Chris Brumme's blog[^] (warning, lots of technical detail ahead!) or simply someone complaining about it in the context of Office add-ins.
|
|
|
|
|
I am hosting in a windows service a remoting object as singleton, I want to make sure that clients calls are thread-safe. Here is the class definition:
[Synchronization(true)]<br />
public class Service : MarshalByRefObject, IService
My question to you is if the Synchronization attribute is a good thing or should I use locks inside every Method of the Service class.
http://stefanprodan.wordpress.com
|
|
|
|
|
Hello sir,
i am maintaining a windows service which run in every ten second and check if certain condition is true then it will connect with the database and made some entry when i install it on machine , at run time it display AN Unhandled Exception('System.Data.SqlClient.SqlException')occurred in windowsservice.exe. just in time debugging this exception failed with the following error:No installed Debugger has just in time debugging enabled. say not to connect with sql server.
please sir resolve my problem
Siddharth jain
siddharth
|
|
|
|
|
In VS.NET go to Debugger menu and select the 'Attach process', you'll be able to debug the service.
http://stefanprodan.wordpress.com
|
|
|
|
|
In your connection string, did you use trusted connection or did you supply a username and password that the SQL Server recognizes? If you used trusted connection, it won't work. The Local System account has no rights to the SQL Server. Change this to supply a username and password of an account that the SQL server trusts and you shouldn't have any problems.
|
|
|
|
|
Visual Studio .NET 2003 comes with version 8 of Crystal Reports. If I were to buy the complete package of Crystal Reports XI can I use the version XI Report Viewer instead of what comes with Visual Studio 2003?
jeneesh k v
Programmer NIC
|
|
|
|
|
Hi all,
I just joined a software solution providing company called, Zone24X7 in Sri Lanka.
I would like to know what is NUnit and hope someone could guide me through this .
Thank you.
RangaSL
|
|
|
|
|
Have you even tried to search the internet for it? If I type it in to a search engine the first hit is for the NUnit Website[^]
|
|
|
|
|
Hey, his question is a bit wordier than that one a while back which just said: "Doubt - What is VB?"
Kevin
|
|
|
|
|
If you don't know something at your work, it's generally a good idea to let them know, otherwise they will expect that you do.
And, as you've been told in two forums, you won't survive as a developer if you can't use google.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: And, as you've been told in two forums, you won't survive as a developer if you can't use google
Excellent point. Sounds like someone needs to learn how to do a little research
|
|
|
|
|
NUnit is an open source unit testing framework for Microsoft .NET. It serves the same purpose as JUnit does in the Java world.
Pavan Pareta
|
|
|
|
|
In the visual studio 2005 I find there is two different class are avilable which in build. They are "object" and "Object". One with lower case "o" and other with upper case "O".
I really confused about it. PLz clarify on it.
|
|
|
|
|
All classes in the .NET Framework are derived from Object, every method defined in the Object class is available in all objects in the system.
If you are designing a class, such as a collection, that must handle any type of object, you can create class members that accept instances of the Object class. However, the process of boxing and unboxing a type carries a performance cost. If you know your new class will frequently handle certain value types you can use one of two tactics to minimize the cost of boxing.
One tactic is to create a general method that accepts an Object type, and a set of type-specific method overloads that accept each value type you expect your class to frequently handle. If a type-specific method exists that accepts the calling parameter type, no boxing occurs and the type-specific method is invoked. If there is no method argument that matches the calling parameter type, the parameter is boxed and the general method is invoked. This tactic yields methods that are CLS-compliant.
Regards,
Satips.
|
|
|
|
|
How did any of that explain the difference between "object" and "Object"?
|
|
|
|
|
Nilesh Mitra wrote: In the visual studio 2005 I find there is two different class are avilable which in build. They are "object" and "Object". One with lower case "o" and other with upper case "O".
There is no difference. One is a synonym for the other.
|
|
|
|