473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

When debug, the program does not respond

Hi,
I have a program that I did not write but I need to add it some features.
The program is written in VB.NET 1.1.
The program use COM Object.
When I run the program it works well, but when I try to debug it with F11,
the program stuck (does not respond), after a minute it step to the next line
and throws Exception of type - System.Threading.ThreadStopException the
message is “Thread was being stopped”.
What am I doing wrong?
Thanks in advance.

Aug 15 '06 #1
2 2429
Try ctrl+alt+break (break all in the debug menu), you may have to enable
unmanaged debugging to see what is currently happenning. Is the com object
hosted in another process?

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"shai" <sh**@discussions.microsoft.comwrote in message
news:41**********************************@microsof t.com...
Hi,
I have a program that I did not write but I need to add it some features.
The program is written in VB.NET 1.1.
The program use COM Object.
When I run the program it works well, but when I try to debug it with F11,
the program stuck (does not respond), after a minute it step to the next
line
and throws Exception of type - System.Threading.ThreadStopException the
message is "Thread was being stopped".
What am I doing wrong?
Thanks in advance.

Aug 15 '06 #2
Greg Young,
I had a variable from the COM object in my code.
I marked it as an inactive code, and since then there is no problem to debug.
The reason looks strange but it works.
Thanks for your response.
Shai.
"Greg Young" wrote:
Try ctrl+alt+break (break all in the debug menu), you may have to enable
unmanaged debugging to see what is currently happenning. Is the com object
hosted in another process?

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"shai" <sh**@discussions.microsoft.comwrote in message
news:41**********************************@microsof t.com...
Hi,
I have a program that I did not write but I need to add it some features.
The program is written in VB.NET 1.1.
The program use COM Object.
When I run the program it works well, but when I try to debug it with F11,
the program stuck (does not respond), after a minute it step to the next
line
and throws Exception of type - System.Threading.ThreadStopException the
message is "Thread was being stopped".
What am I doing wrong?
Thanks in advance.


Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
3
by: Giovanni Boschi | last post by:
We have found a memory leak when using a COM library with a C# application. The leak appears only if the C# application is compiled with the /optimize flag. It goes away when the C# application is...
2
by: Gungmas | last post by:
When I trace the exection in my program the source code does not correspond to where the code is supposed to execute. When I single step the marker stops on empty lines or rows of comment also so...
10
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using...
5
by: Jose Cintron | last post by:
I created a pretty basic program based on the "Windows Forms Application" template using C++ in VS 2005. When I run the program from my local system it runs properly (do happy dance), now when I...
6
by: friend.05 | last post by:
I am able to compile the program, but while building it I am getting following error,can any explain when does this error mean. Command Lines Creating temporary file...
13
by: Rick | last post by:
The following code will enter an infinate loop when in ReadChars. I can only make it happen when reading a Stream and with this particular XML. If I use the ReadInnerXml call rather than my own...
41
by: z | last post by:
I use Visual C 2005 to develop my programs. One in particular is crashing in very specific and hard to replicate situations, made worse by the fact it only crashes when run -outside- the dev - as...
2
by: Jaco Naude | last post by:
Hi I've been working on a VCL project in Turbo C++ which was working fine on my laptop. After doing exactly the same installation of Turbo C++ on a desktop PC the previously working project does...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.