Call Stack is empty, form hung up, CPU is not busy

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

Hi,

I have a form, with some user control in it, usually hung up when I call
form.Show().

I debug to there, I found in Visual Studio 2003, the call stack is empty!

And CPU is not busy at all.

Can anyonoe give me idea about what is happening?

Thanks a million1
R L
 
I have a form, with some user control in it, usually hung up when I call
form.Show().

I debug to there, I found in Visual Studio 2003, the call stack is empty!

And CPU is not busy at all.

Can anyonoe give me idea about what is happening?

It would really, really help to have some code here...

Could you post a short but complete program which demonstrates the
problem?
See http://pobox.com/~skeet/csharp/complete.html for what I mean by
that.

Jon
 
Hi,

Weird, At least you should have one entry in the Call Stack.

What you mean it hangs?

It seems u have only one form, if so you should not need to call Show();

can you post your code? (please remove ALL windows generated code)
 
Ryan Liu said:
Hi,

I have a form, with some user control in it, usually hung up when I call
form.Show().

I debug to there, I found in Visual Studio 2003, the call stack is empty!

And CPU is not busy at all.

Can anyonoe give me idea about what is happening?

Thanks a million1
R L

Not just ccall stack is empty. In Debug-Threads window, I see a thead with
highest priority and no name, no location. Suspend =0. I think this thread
is created by .NET framework itself, maybe to paint the form.

Thanks,
R L
 
This is part of my huge solution.

I did write some small test progam, it works fine.

So I have no code to post for now ...
 
I believe that was what happen:

Your form calling an item that is not in your PC (different location ??) or
you have no correct right on that item, or something wrong with your
framework.
 
Ryan said:
Hi,

I have a form, with some user control in it, usually hung up when I call
form.Show().

I debug to there, I found in Visual Studio 2003, the call stack is empty!

And CPU is not busy at all.

Can anyonoe give me idea about what is happening?

Thanks a million1
R L
Hi,

Can anyonoe give me idea about what is happening?

You'll have to give us a bit more information! The call stack being empty
sounds weird, it may be because you've delved into native code (perhaps).
What is the nature of your application, and are you making an P/Invoke
calls?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top