Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I have a large sinlge threaded vb.net application, which occasionally hang on the line mytabcontrol.selectedindex = 3. The tab does have a tab page that has controls on it. When I break the code its just hanging on this line (green in colour).

 

For such hangs is there any way we can see the call stack beyond this line of execution?

 

Any ideas or suggestion would be greatly apprciated.

 

Just found out some additional info. Seems to be stuck in a loop calling the .net ContainerControl.ActivateControlInternal

Edited by MartyO
Posted

Try SelectTab() any difference, I would assume not.

 

What else is going on in the application? Any eventhandling code hooked up to the controls in the TabControl?

 

Show some code.

Posted

I found a work around. If set the focus to a control on the main form (not on the tabepage) before I select the tab then the hang does nto occurr. Not very happy about it though. Seems like a bug in the .netframework.

 

There is an event linked to the selectedindexchanged, however I don't even reach the code.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...