473,480 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem while debugging

Hi

When I'm debugging and somewhere in the code I have a breakpoint, many
times when the code after breakpoint finishes and the app returns I
can do nothing within in it(it's like freeze)... The app behaves
strangely and not accepts any event even close event!!!!! It just
lefts for me to stop debugging clicking the respective button in the
vs.net toolbar... I don't know if this behaviour is a bug of vs.net or
if it's consequence of bad code ... But if would be bad code I think
it should stop with any kind of error...
Did anybody experienced something like this??

Thanks in advance
Nov 21 '05 #1
6 1418
More than likley its bad code, what version are u using ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"?scar Martins" <su******@hotmail.com> wrote in message
news:22**************************@posting.google.c om...
Hi

When I'm debugging and somewhere in the code I have a breakpoint, many
times when the code after breakpoint finishes and the app returns I
can do nothing within in it(it's like freeze)... The app behaves
strangely and not accepts any event even close event!!!!! It just
lefts for me to stop debugging clicking the respective button in the
vs.net toolbar... I don't know if this behaviour is a bug of vs.net or
if it's consequence of bad code ... But if would be bad code I think
it should stop with any kind of error...
Did anybody experienced something like this??

Thanks in advance

Nov 21 '05 #2
* su******@hotmail.com (?scar Martins) scripsit:
When I'm debugging and somewhere in the code I have a breakpoint, many
times when the code after breakpoint finishes and the app returns I
can do nothing within in it(it's like freeze)... The app behaves
strangely and not accepts any event even close event!!!!! It just
lefts for me to stop debugging clicking the respective button in the
vs.net toolbar... I don't know if this behaviour is a bug of vs.net or
if it's consequence of bad code ... But if would be bad code I think
it should stop with any kind of error...


I have never experienced this behavior. What version of VS.NET are you
using? Can you post some code that causes this behavior?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Oscar,

I had this behaviour in VS2002 and when I am debugging where things as
hoovering a mouse and like that are in it.

So confirm the message from OHM, tell us something more.

Cor
Nov 21 '05 #4
I'm using VS.NET 2003 vrs 7.1.3008.
I must say that if I don't have any breakpoint the app behaves
normal(not always). Just when I put a breakpoint it assumes always
that described behaviour...

In my application I have a project with a main form and 2 forms with
one panel each... I also have a module (startup) which has declared
the 3 forms as public. This module instanciates and runs the main
form... This main form as a sector(panel) which it´s filled with a
default panel... When I press a toolbar button the main form removes
the default panel and adds the sector(panel) the respective
panel(instanciating the form if 1rst time added). So far I have just 2
panels as mentioned above. Then, Some events make the panels be
removed and added as the user interacts...
I think the behaviour of the app may be caused by this kind of
"floating panels" that are all publics (the forms) and which one
accesses the database everytime with its own private DB access
object.... Or no??
I'm thinking about to reinstall the VS.net because I can't debug the
app and trace the objects behaviour and its values....

I'm stuck..
Thanks

"One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> wrote in message news:<#c**************@TK2MSFTNGP09.phx.gbl>...
More than likley its bad code, what version are u using ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"?scar Martins" <su******@hotmail.com> wrote in message
news:22**************************@posting.google.c om...
Hi

When I'm debugging and somewhere in the code I have a breakpoint, many
times when the code after breakpoint finishes and the app returns I
can do nothing within in it(it's like freeze)... The app behaves
strangely and not accepts any event even close event!!!!! It just
lefts for me to stop debugging clicking the respective button in the
vs.net toolbar... I don't know if this behaviour is a bug of vs.net or
if it's consequence of bad code ... But if would be bad code I think
it should stop with any kind of error...
Did anybody experienced something like this??

Thanks in advance

Nov 21 '05 #5
I´ve been all morning (portugal) struggling with this problem and I´ve
figured it out... Now I know this behaviour comes from the public
declared "floating panels" mentioned above... I've tried it with this
simple code with 2 forms and one module (module 1,form2 and form3):

MODULE 1

Module Module1
Public objForm2 As New Form2
Public objForm3 As New Form3
Sub main()

Application.Run(New Form2)

End Sub

End Module

--------------------------------------------------------------------
FORM 2

Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents Panel2 As System.Windows.Forms.Panel
Friend WithEvents Button1 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Me.Panel1 = New System.Windows.Forms.Panel
Me.Panel2 = New System.Windows.Forms.Panel
Me.Button1 = New System.Windows.Forms.Button
Me.Panel1.SuspendLayout()
Me.Panel2.SuspendLayout()
Me.SuspendLayout()
'
'Panel1
'
Me.Panel1.BackColor =
System.Drawing.SystemColors.ActiveCaption
Me.Panel1.Controls.Add(Me.Panel2)
Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
Me.Panel1.Location = New System.Drawing.Point(0, 0)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(784, 398)
Me.Panel1.TabIndex = 0
'
'Panel2
'
Me.Panel2.BackColor = System.Drawing.Color.Red
Me.Panel2.Controls.Add(Me.Button1)
Me.Panel2.Location = New System.Drawing.Point(128, 56)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(464, 248)
Me.Panel2.TabIndex = 0
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(160, 88)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 0
Me.Button1.Text = "Button1"
'
'Form2
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(784, 398)
Me.Controls.Add(Me.Panel1)
Me.Name = "Form2"
Me.Text = "Form2"
Me.Panel1.ResumeLayout(False)
Me.Panel2.ResumeLayout(False)
Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Panel1.Controls.RemoveAt(0)
Panel1.Controls.Add(objForm3.Panel1)
End Sub
End Class

---------------------------------------------------------------------
FORM 3

Public Class Form3
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form
Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents Button1 As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
Me.Panel1 = New System.Windows.Forms.Panel
Me.Button1 = New System.Windows.Forms.Button
Me.Panel1.SuspendLayout()
Me.SuspendLayout()
'
'Panel1
'
Me.Panel1.BackColor = System.Drawing.Color.Firebrick
Me.Panel1.Controls.Add(Me.Button1)
Me.Panel1.Location = New System.Drawing.Point(64, 40)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(560, 272)
Me.Panel1.TabIndex = 0
'
'Button1
'
Me.Button1.Location = New System.Drawing.Point(224, 96)
Me.Button1.Name = "Button1"
Me.Button1.TabIndex = 0
Me.Button1.Text = "Button1"
'
'Form3
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(680, 357)
Me.Controls.Add(Me.Panel1)
Me.Name = "Form3"
Me.Text = "Form3"
Me.Panel1.ResumeLayout(False)
Me.ResumeLayout(False)

End Sub

#End Region
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
objForm2.Panel1.Controls.RemoveAt(0)
objForm2.Panel1.Controls.Add(objForm2.Panel2)
End Sub
End Class

Try this please....
When you press the button on form 3 you can see that you can't close
the form in the right sided corner X button, and nothing happens...
It seems like in Form2 I can add the objForm3.panel1 to its
controls...But in Form 3 I can't add its controls objForm2.panel2 ...
Why? Am I thinking in a wrong way? Certainly...
There is any kind of way to add and remove panels in ã main form as
the user interacts clicking, but the panels having possibility to
handle objects of other panels... A little bit confusing!!!

Thanks in advance

su******@hotmail.com (?scar Martins) wrote in message news:<22**************************@posting.google. com>...
I'm using VS.NET 2003 vrs 7.1.3008.
I must say that if I don't have any breakpoint the app behaves
normal(not always). Just when I put a breakpoint it assumes always
that described behaviour...

In my application I have a project with a main form and 2 forms with
one panel each... I also have a module (startup) which has declared
the 3 forms as public. This module instanciates and runs the main
form... This main form as a sector(panel) which it´s filled with a
default panel... When I press a toolbar button the main form removes
the default panel and adds the sector(panel) the respective
panel(instanciating the form if 1rst time added). So far I have just 2
panels as mentioned above. Then, Some events make the panels be
removed and added as the user interacts...
I think the behaviour of the app may be caused by this kind of
"floating panels" that are all publics (the forms) and which one
accesses the database everytime with its own private DB access
object.... Or no??
I'm thinking about to reinstall the VS.net because I can't debug the
app and trace the objects behaviour and its values....

I'm stuck..
Thanks

"One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> wrote in message news:<#c**************@TK2MSFTNGP09.phx.gbl>...
More than likley its bad code, what version are u using ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"?scar Martins" <su******@hotmail.com> wrote in message
news:22**************************@posting.google.c om...
Hi

When I'm debugging and somewhere in the code I have a breakpoint, many
times when the code after breakpoint finishes and the app returns I
can do nothing within in it(it's like freeze)... The app behaves
strangely and not accepts any event even close event!!!!! It just
lefts for me to stop debugging clicking the respective button in the
vs.net toolbar... I don't know if this behaviour is a bug of vs.net or
if it's consequence of bad code ... But if would be bad code I think
it should stop with any kind of error...
Did anybody experienced something like this??

Thanks in advance

Nov 21 '05 #6
HI

Please see post 3 and 4..

I've progressed a little bit but I still have the same problem..Now I
surely know that my problem is caused by the panels... And now I'm
thinking that I can't do this the way I've thought it.
I want to have a main form which have one toolbar and one left docked
explorerbar... I've created one form for each panel I wanted to show
under the same project, and I was adding/removing them to the main
form controls collection. But the app started to have the mentioned
behaviour when in one form/panel I access to objects of other
form/panel... For example, when the user is in one form and click one
button another form/panel appears (adding/removing them to the main
form controls):

Public Class frmNavegacaoPrincipal

Private Sub UltraExplorerBar1_ItemClick(ByVal sender As
System.Object, ByVal e As
Infragistics.Win.UltraWinExplorerBar.ItemEventArgs ) Handles
UltraExplorerBar1.ItemClick

....
Case "ImprimirMaisEtiquetas"

If objPanelImprimirMaisEtiquetas Is Nothing Then
objPanelImprimirMaisEtiquetas = New
frmgisticaImprimirMaisEtiqueta
pnlImprimirMaisEtiquetas = New Panel
pnlImprimirMaisEtiquetas =
objPanelImprimirMaisEtiquetas.pnlIME
End If
....
I figured out (with a simple test project)that I had to declare public
in a project-level module the panels and the respective form:

Public objPanelEtiquetasImprimir As frmLogisticaEtiquetasImprimir
Public pnlImprimirMaisEtiquetas As Panel

And like this I had no more that strange behaviour... When I add/rem
the panel I use pnlImprimirMaisEtiquetas but to call subs or functions
in the panel/form I use directly objPanelEtiquetasImprimir.Anything...
When I tried to pass this idea to my 3 month project... oooops... Many
problems... behind main form I have other panels added in Windows
Generated Code by the explorerbar and toolbars... And my problems
persist... I tried to declare these extra panels public and modify the
Windows Generated Code but I have more problems now...
Am I thinking the best way, or is there any other way to perform
this??

I just want a single Document Interface that have one sector
transforming as the user interacts with it... Explorerbar and Tollbars
just call the Panel or whatever it is that corresponds to the item
clicked!!!

Thanks in advance


"Cor Ligthert" <no**********@planet.nl> wrote in message news:<O0**************@TK2MSFTNGP09.phx.gbl>...
Oscar,

I had this behaviour in VS2002 and when I am debugging where things as
hoovering a mouse and like that are in it.

So confirm the message from OHM, tell us something more.

Cor

Nov 21 '05 #7

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

Similar topics

3
2503
by: Stephanie | last post by:
I have a problem that I am trying to solve. We have a huge product with a whole lot of ASP and VB code. VB code is all ActiveX dlls which are used by ASP app. When I attempt to add features or fix...
10
5455
by: Matt Fielder | last post by:
I have developed a custom control to be used in my application. My application includes a form designer, so the control can be hosted while designmode for the control is either true or false,...
2
4059
by: PJ | last post by:
I'm at the end of my rope, I've tried everything I can think of and, while the problem is all over google, no answer has worked for me. I'm getting the following error while trying to start my web...
1
1764
by: Günther Rühmann | last post by:
Hi, I´m not sure if i´m right int this group... My problem: I made a vb .net application that reads from AD via System.Directoryservices.Directoryentry. The appliocation enumerates group...
0
281
by: Tequila | last post by:
Here’s the description I’d launched Visual Studio and started to write an application After some time of coding, I wanted to test it. I pressed F5 hopin to run application for debugging. I...
5
4060
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
3
1467
by: Lambuz | last post by:
Hi all, I've got this problem. I've to implemente a solution like the example in http://support.microsoft.com/default.aspx?scid=kb;EN-US;313891, but I can't configure correctly the example. ...
0
2041
by: Budhi Saputra Prasetya | last post by:
Hi, I still have the same problem with embedding Windows Control. I'll just requote what I posted last time: I managed to create a Windows Form Control and put it on my ASP .NET page. I...
4
1571
by: Vivienne | last post by:
I am using vs 2005 on windows xp. I created a project, named ssps.And when debugging, I set project property->debugging->command argument the way I wanted,like this: -b f: \files f:\files. Then...
2
3238
by: jiang.haiyun | last post by:
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple: ====================== %less qttest.py from PyQt4 import...
0
7044
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
6908
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
7087
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...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.