|
I'm using VS2005 and it does start AppName.vhost.exe.
Killing each process can really terminate the app.
However, that's what I need to solve: not to have to end it manually.
Thank you very much.
KiT
|
|
|
|
|
Hi,
The reason you're probably having this is because you're calling GC.SuppressFinalize(this).
From msdn:
GC.SuppressFinalize Method
Objects that implement the IDisposable interface can call this method from the IDisposable.Dispose method to prevent the garbage collector from calling Object.Finalize on an object that does not require it.
I'd advice against implementing IDisposable if you aren't using unmanaged resources or threads anyway, the garbage collection usually handles itself quite well anyway. Good luck!
|
|
|
|
|
I've tried removing all the implementation of IDisposable.
However, it doesn't solve the problem.
Thank you very much.
KiT
|
|
|
|
|
Are you creating any threads by yourself? If true, you need to set the IsBackground[^] property of those threads to <code>true</code>. Otherwise, those threads will remain alive and will prevent your process from dying.
|
|
|
|
|
did you tried application.end
this usually happens when you call some form from another form and just hide the base form
or some thread in back ground is still working
it will be a better option to debug your application
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
I have only one form and not calling any other forms.
But I do calling some classes and a user control.
Where to set Application.end?
Thank you very much.
KiT
|
|
|
|
|
at formclosing event or where ever you want to close your app
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
I've run into similiar circumstances. I have the forms running on seperate threads and I also have a thread running a formless message loop. When the form closed, the application didn't shutdown because the other thread was still running. Try calling Application.Exit() when the form closes. It's probably not that simple, but I'd thought I'd pass on my 2-cents worth.
|
|
|
|
|
|
|
Hi Senthil,
I have the same problem, but the ScrollToCare method you have suggested has no effect (or not what I hoped to do)
This code snippet should place the cursor always at the current position
but it does not scroll to the end of the lines.
<br />
private void button1_Click(object sender, System.EventArgs e)<br />
{<br />
try<br />
{<br />
this.richTextBox1.Clear();<br />
for(int i=0; i<200; i++)<br />
{<br />
this.richTextBox1.SelectedText = "Index = " + i.ToString() + "\r\n";
this.richTextBox1.ScrollToCaret();<br />
}<br />
}<br />
catch{}<br />
}<br />
What's wrong ?
Tnx in advance
Regards
Frank
|
|
|
|
|
Does anyone have a particle filter for tracking objects in avi, mpeg files?
|
|
|
|
|
Plz try to answer my question
|
|
|
|
|
Please try to ask a question, concisely, and without the use of txtspk.
|
|
|
|
|
i asked what is the difference between cloaning and copy
|
|
|
|
|
Ravi Shankar43 wrote: get me the answer for that
I understand english is probably not your first language, but you must speak it well enough to realise how rude that statement is.
Your question is not particularly clear - often the case when you use 1 line questions! Programming asside, cloning and copying are the same thing. The definition of clone[^] includes "An exact digital copy, indistinguishable from the original".
In .NET you have an interface named ICloneable which defines a way to clone an object... that is to make a deep copy. Your use of the word Copy, may imply a shallow copy.
As I said - your question is mighty vague!
|
|
|
|
|
I am new to this group.And thanks for your reply.
|
|
|
|
|
hi
i have 2 programs and want to add a listviewitem from the one program to a listview in the second program.
with listboxes this is kinda easyly done with sendmessage and LB_ADDSTRING.
but how can this be done with a listview/item ?
googled for some hours now and didnt find a solution.
thx in advance
|
|
|
|
|
adamario wrote: easyly done with sendmessage and LB_ADDSTRING.
In C#? You are in the C# forum do you need the C++/MFC forum?
adamario wrote: but how can this be done with a listview/item ?
googled for some hours now and didnt find a solution.
They hide that information in the documentation[^]
led mike
|
|
|
|
|
i know that i am in c# forum
my problem is that i didnt succeed in transforming the LVITEM stucture to c#.
but this is needed to add items via api in c#.
mayb someone did that already before and can provide a little code snippet how to do it
greetings
|
|
|
|
|
|
Hi guys,
Please help!!! I have a function that takes 3 parameters that I would like to queue it up; this function call occurs within a service and accesses the database based on the 3 parameters. I know about waitcallback but that only accepts the state; how do I pass the other 2 parameters in order to call that function. Please help!!!
sasa
|
|
|
|
|
Just define a new class with 3 fields to transfer your data in, pass that as the state field, and cast it back when you need your parameters:
class MyParameters
{
public string param1;
public bool param2;
public object param3;
public MyParameters(string p1, bool p2, object p3)
{
param1 = p1;
param2 = p2;
param3 = p3;
}
...
public void myCallback(object o)
{
MyParameters mine = (MyParameters) o;
string p1 = mine.param1;
etc
}
WaitCallback wait = new WaitCallback(myCallback);
ThreadPool.QueueUserWorkItem(wait, new MyParameters(bla,die,blah));
|
|
|
|
|
I am going to try this, thank you very much and I really appreciate your help.
sasa
|
|
|
|
|
You are the man, my friend. It worked; thank you very much
sasa
|
|
|
|