473,831 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debug hanging up in vb.net, debug crash

I am developing a standalone .exe in VB.NET. This is my first full
application since vb6. The sln. contains 2 projects and around 50
classes(includi ng forms). For the first 6 weeks it was working like a
charm, hit f5 and run with the debugger. Then a coworker and I tried
to "cleanup" the references b/c they didnt' look right. well,
needless to say, it is very screwed up now.

1) i cannot get my refernences to recognize the correct assemblies
unless i put them in the same directory as the .exe i want to debug.

2) if i put them in the directory where the .exe then i can debug,
but only from a "step into" sort of debug. then, once i get it up and
running, i cannot close it without it hanging up. i should've
mentioned, just trying to hit f5 to run the debugger will also hang it
up.

3) this is the weird one. when i try to compile sometimes it will
tell me that i cannot write to the specified directory(debug ) b/c
something is using it. well, it turns out that the .exe is running,
but only with about 56k in memory. i shut that down and it will
compile.

if anyone has any clues what i'm talking about, i'd really appreciate
some help and would be happy to tell more about it .

until then, thanks,

kyle
Nov 20 '05 #1
1 3158
Nak
Hi Kyle,
1) i cannot get my refernences to recognize the correct assemblies
unless i put them in the same directory as the .exe i want to debug.
This is how it should work, unless the Assembly is registered in the GAC for
global use.
2) if i put them in the directory where the .exe then i can debug,
but only from a "step into" sort of debug. then, once i get it up and
running, i cannot close it without it hanging up. i should've
mentioned, just trying to hit f5 to run the debugger will also hang it
up.

3) this is the weird one. when i try to compile sometimes it will
tell me that i cannot write to the specified directory(debug ) b/c
something is using it. well, it turns out that the .exe is running,
but only with about 56k in memory. i shut that down and it will
compile.


It sounds to me like your application isn't terminating correctly. do any of
the included assembleys contain "User controls", these can cause big issues
in the IDE if you have bugs in them, because they actually run (so to speak)
in the IDE. When you say you and a cowforker decided to clean up some
references do you mean the terminating of? I'm not quite sure what you mean
by that, if your assigning the wrong types to certain variables you may come
into strange issues,

*he says in a quite voice

You may be able to resolve typing issues by using "Option Strict On",
somewhere in the project properties I do believe........ never used the
thing myself so I wouldn't know.... bla bla bla.

*ahem

Also, try removing your Bin and Obj folders and going for a fresh
compile, obviously making sure that you don't delete any files that you put
in any of them for keep sake or application use. After you have "rebuilt
all" so to speak, try running the application from explorer, rather than the
IDE (might not make the blindest bit of difference but at least then the IDE
wont slow you down if it goes wrong). Sounds like you might need to
"regress" before you done the "clean up some references" with your
cowforker. I hope this helps, let me know if you have any issues.

Nick.
Nov 20 '05 #2

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

Similar topics

2
399
by: Song | last post by:
Hi, gurus, I am new with visual studio... I am trying to build a standalone C++ project by MS visual C++, the problem that I have is: if compile it as "Release" version, it crashes by a certain combination of the operations, while if compile it as "debug" version, there is no problem. I also tried to "debug" the release version in the IDE, after seeing warning and choosing "debug anyway", there is no crash...I guess the problem has...
1
2090
by: tony | last post by:
hi. i have net application that is compose of dll in vb.net and c managed code , and unmanaged. the application crash after 8-9 hours of running. its crash without any message box of exception (i compile it in debug mode ). i guess it crash in the unmanaged code, but im not sure.
0
1522
by: Adam Tomjack | last post by:
I'm trying to embed Python 2.3.5 into a C++ application on Windows XP. When I build my app with debug symbols and link to a debug build of Python, then my program seems to crash most (but not all) of the time. Sometimes it crashes on startup, and sometimes at exit, sometimes not at all. I haven't seen it crash with non-debug builds of my app and Python. The release build runs my Python test code just fine. When the debug build doesn't...
2
1993
by: Eric Mathieu | last post by:
Hi ! I have a program with almost 100 sources. The program coredump so i want debug the memory and i try memwatch but i don't get the result i want. The program crash so memwatch don't create the log's file. Also, memwatch just tell you how many memory allocate et free.
0
2121
by: Atul | last post by:
I have a .Net Managed C++ wrapper control for a MFC control. When using the ..Net control in a Visual Studio 2005 Beta 2 C# project and running in Debug mode, I get a crash saying something like "First Chance Exception : memory cannot be read". I found that this was becuase a call to AfxGetThread() was returning NULL. I tried using AFX_MANAGE_STATE(AfxGetStaticModuleState()); but it did not solve the problem. Furthermore, this crash only...
5
2305
by: moondaddy | last post by:
I have a website where cataloge pages are populated by calling a stored procedure on sql server. I use the sql data adapter's fill method to call this stored procedure and fill the dataset. about 6 to 15 times a day the server hangs and times out when this fill method is called. The SP is simple and uses very little resources (as tested using client statistics in query analyzer). Here's data from my error log which includes the...
15
1578
by: Trapulo | last post by:
Very often my VS2005 pro crashes after a debug. I run ASP.NET debug, and all works well. Then I stop it, and all it's also ok. Then, when I try to edit some code, it crashes and I need to kill it, restart, reload project, etc. it seems that the problem is with vb compiler integration, but I'm not sure. Is this a known problem? Is there some solution? I cannot spend all my time to reload VS and projects!
2
3565
by: kevinding | last post by:
Hi All, We meet an evil condition for our project. Our project has 3 layers. A C# layer to do some business logic, and Managed C++ layer translate managed values to native ones or vice verse.(vs2005, /clr:oldSyntax) . UI layer are written in native C++. Currently, we meet a random crash bug in release build. It is ok in debug build. If we replace the managed c++ dll with the debug one, it works also. So we think there must be...
3
1688
by: Microsoft | last post by:
Hi I have a c# program that continually runs 24/7 and performs a variety of tasks based on a timer. There is one routine that hangs every Saturday morning without fail. If I restart the program throughout the week is still hangs. I can restart it immediatly after the hang and it runs fine until next Saturday. There is nothing different about Saturday that I can think of.
0
9794
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
10778
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
10496
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...
0
10210
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9319
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...
0
6951
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5788
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4419
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

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.