473,785 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I even start debugging this.

First off, I'm a hardware/OS guy. I just write code on the side and I'm
completely self taught - so bear in mind my total lack of expertise.

I have a program originally written in VB2003 using the dotnet 1.1
framework. The program makes extensive use of Win32 API calls to help manage
and track remote access sessions with out clients. I've left it running for
days at a time on my system with no problems. It has always been stable.

I recently upgraded the program to VB2005 using the upgrade wizard. It
seemed to port cleanly with only minor cleanup needed (such as 2005 needing
more explicit references. i.e. "if result = dialogresult.ye s" becoming "if
result = windows.forms.d ialogresult.yes "). The problem is that under dotnet
2.0 the program is unstable. If I leave it minimized for several hours then
try to acess it from the taskbar, the program form will just display as a
blank white form. No actual error occurs, the form is just white. Task
manager shows the process running normally. It goes to not-responding when
you try to close it and has to be force closed. I have try...catch clauses
around everything and as far as I can tell, no exceptions are occuring. The
problem only occurs if the program has been idle for a long time. It's as if
Windows has simply decided to quit drawing the form.

Obviously no one can tell me exactly what's happening, my problem is that I
don't have even the vaguest idea how to start debugging something like this.
How do you troubleshoot a program that just hangs without causing an error?

Can somebody recommend an article or website (or even a book) that gives a
general debugging process for something like this?
Nov 20 '06
10 1977
mg
Doug Robertson wrote:
I have a program originally written in VB2003 using the dotnet 1.1
framework. The program makes extensive use of Win32 API calls to help manage
and track remote access sessions with out clients. I've left it running for
days at a time on my system with no problems. It has always been stable.
Doug,
I have written an almost identical application in VB2005. Here is the
code I use to start a RAS VPN connection and launch either the RDP
client or VNC:

Dim spVPN As New Process()
With spVPN
.StartInfo.File Name = oSettings.RASDi alPath
.StartInfo.UseS hellExecute = False
.StartInfo.Redi rectStandardOut put = True
.StartInfo.Wind owStyle = ProcessWindowSt yle.Hidden
.StartInfo.Crea teNoWindow = True
.StartInfo.Argu ments = VPNargs
.Start()
sOut = spVPN.StandardO utput.ReadToEnd
.WaitForExit(10 00)
Application.DoE vents()
ec = .ExitCode
End With
If Not spVPN Is Nothing Then spVPN.Close()

Debug.Print("ex it code: [" & CStr(ec) & "]" & vbCrLf & sOut)
If ec = 0 Then
Dim sp As New Process()
With sp
.StartInfo.File Name = launchApp
.StartInfo.UseS hellExecute = False
.StartInfo.Work ingDirectory = My.Application. Info.DirectoryP ath
.StartInfo.Argu ments = launchCMD
.Start()
.WaitForExit(10 00)
Application.DoE vents()
End With
If Not sp Is Nothing Then sp.Close()
Else
Select Case ec
Case 623
MsgBox("Support RAS phonebook entry not found.", MsgBoxStyle.OkO nly,
"Connection Error")
Case Else
MsgBox(sOut, MsgBoxStyle.OkO nly, "Connection Error")
End Select
End If

It uses a dummy RAS connectoid (the the right security/VPN settings)
that you can call with rasdial and command line switches.

One thing I have noticed is that RAS dial/hangup is very sensitive to
trying to 'rush' it when hanging up. Any help?

Nov 21 '06 #11

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

Similar topics

0
1753
by: Edelwater | last post by:
Hello, I have (possibly) a framework related problem Or VS specific : Error while trying to run the project: unable to start debugging on the server. could not start asp.net or atl debugging. Verify that ASP.NET or ATL Server is correctly installed on the Server. This occurs when i want to try to debug a project in Visual Studio. I
0
498
by: J. Hazell | last post by:
I am attempting to start debugging an aspx page. IE is installed in the default location. Whenever I start the debugging process it fails with the error message. Cannot start debugging. Unable to find Microsoft Internet Explorer. I don't know where I would need to start to resolve this. I am running the entire environment on a server machine and have looked at solutions to failure of debugging aspx pages, but none seem to be...
1
1817
by: rams | last post by:
Hai all! When ever i'm trying to run a web application it's giving error " Unable to start debugging on web server, access denied " or Unable to start debugging on web server, catastropic failure " I'm using a system which has Windows 2000 professional and i'm( user id) there in administrator user list and debugget user list. In project setting i enabled asp.net debugging= true. Plz suggest me how to fix the problem.
11
2760
by: Claude seraphin | last post by:
I'am having this message while trying to rune my asp.net app on win3k server. I have set debug="true" in <compilation section in my web.config . Can anyone help me? Thanks in advance
1
271
by: Coder | last post by:
Hi everyone ! I've prblems starting debugging a web project. A win project works just fine, but a web project refuses. I can attach to the the process, and that works, but when trying to start up from the IDE (Debug - Start), it only comes up with the message "Unable to start debugging on the web server", preceeded by a message "Error while trying to run project". There is no extra information after the first one.
5
6582
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development Environment" with this message: "Error while trying to run project: Unable to start debugging on the web server. Server-side error occurred on sending debug HTTP request. Make sure the server is operating correctly. Verify there are no...
6
6190
by: Bob Rock | last post by:
Hello, I'm using an executable (for which I do not have the source code nor the pdb file) as the startup application to load a DLL I'm writing and need to debug. If I try to debug the DLL I immediately get the error "Unable to start debugging. Unable to start program XXX.exe". If I do "Start without debugging" my startup application gets correctly executed. Is this problem due to the fact I'm missing the debugging information for the...
1
1896
markmcgookin
by: markmcgookin | last post by:
Hi Folks, this is a problem I had a few days ago, and I was able to solve it, but I thought I'd post the solution I found here incase anyone has a similar problem! I found this stuff on an MSNDN forum.
3
2367
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
Just started to test a VB.net 2002 project for ASP.net application. After successfully installed the VS.net 2002 and tested the IIS 5.1 on XP Pro SP2 for some classical ASP programs, I am starting to build ASP.net programs now. For a new ASP.net project, an error message (i.e Unable to start debugging on the web server) popped out. I disabled the ASP.net debugging for 3-4 projects. However, I either could not see the ASP.net...
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4045
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 we have to send another system
2
3645
muto222
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.