|
I was looking through some dll's using dependancy Walker and alot of them are pointing toward a Watchdog.sys file. Looking through this file I see alot of monitoring and event functions.
What exactly does this file monitor?
And is there a way to interop into it from C#?
Thanks
Steve
Steve Welborn
Software Architect
|
|
|
|
|
I have been developing a Soap messaging application. I created a message handler class which was derived from from the SoapReciever class. I created a node by putting the class in my web server and added it to the web config file under httpHandlers. I can send soap messages and the recieving end is intended to write the messages to an XML file, the code is correct however in the end there is no file.
Does anyone know what I should do?
|
|
|
|
|
Hi , C# Fellows,
I am writting a program to deal with C++ Dll.
When I do stress testing , (run the program continously), at the end I got "Out of Memory" Exception , So I am thinking of adding some code to monitor memory change. But the prolem here is , I dont know when the Garbage Collector will kick in. So , Its critical to catch this event.How Can I do it in C#--???
Thanks
|
|
|
|
|
Is there something wrong with using the Performance Monitor built into Windows?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well, stress testgin will last for a quite long time , and I can't stay there stare at it whole day.
|
|
|
|
|
It can log the data to a Perofmrnace log file. But since, in your other post, you said that you want to log what looks like every function call, Performance Monitor won't help you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
hi, Leppie,
I make it clearer:
what I want is a record something like this:
time:- 8:12:21, Event : function ..called,free memory size: ..Bytes
time:-8:12:23, Event : GC called ., free memory size : ..Bytes;
so later on we can determine which function does have memory leak.
and ,Yes , some Dll call locate memory and release later.
|
|
|
|
|
Technically I don't think it is ever specified when the GC happens (no behavior in the ECMA is specified for this?) and technically you as a .Net Framework programmer shouldn't care. There is no real concept of "memory" in a virtual machine like the .Net Framework. An object holds a "reference" not a memory address. Memory is treated just like other resources (file handles, sockets, etc). The virtual machine can either allocate the resources necessary to vivify (is that the right word? ) the object or it fails and hopefully throws an exception that is meaningful.
So from what I read you want C# code that knows when it can't create any more objects. This is inherently hard to do in a virtual machine system like the .Net Framework because all of the innards are virtual! In general the .Net Framework will not tell you before hand whether you can create the object before you create it. You can gather some information about the external OS and try to make a judgement then but I haven't found a .Net Framework facility to check if it will succeed making the next object beyond trying to make the next object.
ps. Since it sounds like you are dealing with a DLL written in C/C++, maybe you are leaking memory because you aren't handling allocation correctly? If you fix that you don't need to worry about trying to monitor memory usage.
|
|
|
|
|
You can use the CLR Profiler[^] to get this type of information, or if it doesn't work for you, you can write your own profiler that ties into the .net profiler api to get that information.
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
Is there any utility which converts VC++ code to C# code. I do not expect all conversions basic conversion will do such as class, property, method migration.
Thanks
Shyam
|
|
|
|
|
I don't see how it could exist. Unless you were talking about converting Managed C++ code to C#. But unmanaged code to C#? I don't see how it could possibly work. Just mapping the MCF classes and code to .NET Framework classes would be nightmare.
You can check out this[^] discussion of the very topic on a MSDN Blog.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
OK, what is wrong with this property definition in a control? In the properties list the little empty box displays next to the name and the dot-dot-dot button works correctly, but when I select a file nothing is every filled-in and the resource is not serialized in the InitializeComponent() call. I suspect it is a serialization issue but I have tried both Visible and Content to no effect.
[
CategoryAttribute("Appearance"),
DescriptionAttribute("Image that appears when control is down."),
BrowsableAttribute(true),
EditorAttribute("System.Drawing.Design.ImageEditor, System.Design",typeof(UITypeEditor)), DesignerSerializationVisibility(DesignerSerializationVisibility.Visible),
TypeConverter(typeof(System.Drawing.Bitmap)),
DefaultValueAttribute(null)
]
public Bitmap ImageDown
{
get
{
return null;
}
set
{
_imageDown = (Bitmap)value;
}
}
|
|
|
|
|
No wonder your Bitmap is empty - you always return null...
I guess changing
get
{
return null;
} into
get
{
return _imageDown;
} could do the trick.
Regards,
mav
|
|
|
|
|
i read email from email server using pop3 classes,but for attachment its giving MissingBoundary Exception
if anybody know sen solution on my gmail account
rehman.azizur@gmail.com
|
|
|
|
|
Hello
I am Atif. I am working to develope an application that extract text from viedo file if any one have idea about it please let me known how can do this .
Thanks
|
|
|
|
|
hello.
i am trying to creat a server/clients application and i want the server to hold an object and the clients to recive references to that object. (so far easy)
but i also want to do databinding on some of the propertyes so when someone changes a property the other clients will see the change live...
i tryed treating the remote object as an ordnary object and creat databinding but it didnt work..
is it even posible?
can any one here give me an example of how to do it?
|
|
|
|
|
As far as I know, this isn't possible to do with remoting. Cool idea, but consider that every client should have a unique instance of the object on the server. So they're all separate entities.
I have a very similar issue with a client and we had to write some custom code that updates the server with the value change (we're not using data binding at all), and then it notifies the other clients of value changes. But to do this, we wrap the value with some additional information and the whole mechanism handles not only discrete updates but also updates to things like DataTable objects, without resending the whole DataTable.
In essence, you're going to have to create an architecture that supports this functionality.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
thats bad
i realy dont want to rewrite the whole functionality of databinding.
i will try to ask microsoft using my frind's msdn subscription.
maybe it works in VS2005? if so i will probebly move to it.
i even tryed to creat a PROPERTYWARPER
just like an event warper needed to rase events with remoting..
in this case i could do the subscribing to databinding. but the data was not updating
|
|
|
|
|
i just want to develop smart device application to mysql by using c#.i just want to know is thr any mysql provider to do this.currently it support only sql...?
Does any one know solution for this.
Please let me know soon as possible.
thankx
Amal
|
|
|
|
|
|
Hi, I need a simple gaphic library which enables me to make the picture (PictureBox?) become visible and invisible in different ways - fading away, emerging pixel by pixel and so on. Does anybody know such library? I need it as a part of my project. Thanks!
|
|
|
|
|
Hi.
How can I change the calendar display from my regional culture without setting from the regional setting. I 'd like to change form thai calendar to Eng US calendar by using code. How can I code with C#.
thanks . . .
|
|
|
|
|
Hi!
You should be able to assign a culture by using the Thread.CurrentCulture property.
For example:
Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE"); Regards,
mav
|
|
|
|
|
thank you very much but which property of the datetimepicker can work with system.globolization?
|
|
|
|