.NET 2008 Application Crashing During Do Loop?

Jun 4, 2010

I am writing an application to compare each item on listbox1 to all items on listbox2. If the item is found, then remove it from both lists. The goal is to only have the items that were not found remain on both lists.

The problem is, the application just hangs and I never get any results. I looked at my code several times and I cannot figure out what's going on (programming noob I know.

[Code]...

View 4 Replies


ADVERTISEMENT

Application Crashing On Sbs 2008?

Nov 16, 2010

An application working fine on Microsoft Small Business Server 2003 (Windows 2003) 32 bit when installed on Microsoft Small Business Server 2008 (Windows 2008) 64 bit crashed with the following trace;SUB: MyApplication_UnhandledExceptionException Type: System.TypeInitializationExceptionMessage: The type initializer for 'IV.modMain' threw an excep

View 2 Replies

Why Application Keeps Randomly Crashing

Apr 15, 2010

Is there a way how i can see why my application keeps randomly crashing?

View 9 Replies

Access The File Without The Application Crashing?

May 17, 2010

I need to check and see if I can access a file(the file is in use) So When I try to access it the application crashes. When I can access the file without the application crashing I would like a msgbox to pop up.

View 3 Replies

CodeDom Resources.ResourceManager Is Crashing Application

May 13, 2011

Where it crashes(According to 3 messageboxes):

[Code]...

View 7 Replies

System.Net.Mail Crashing Application When .send Called

Dec 9, 2010

I'm working on an application that will send an email at a certian point.I'm using System.Net.Mail and it works fine when I do a "Debug - Start Debugging". But when I build the application, and run it, it crashes the whole thing when it gets to the client.Send(message) part.[code]

View 7 Replies

VS 2010 Process Class RedirectStandardError Crashing Application?

Apr 2, 2012

This is going to be a strange issue and I don't expect an answer,.I'm using Ghost32.exe to image HDDs within a Windows PE environment. With the release of WinPE 4.0, we can now use the 4.0 .NET framework. So in order to capture any errors that Ghost reports, I'm redirecting the standard error stream so I can review it later.

But, when I implement those two lines of code (highlighted below), the application crashes.I've implemented error logging with the UnhandledException event of the application, but it never fires during this error. All other errors fire, but this one does not.So I ran it in normal Windows and I receive the following error:Quote:The system cannot find the file specified

But when I comment out those lines, it opens just fine. So I'm a little confused.

[Code]...

View 1 Replies

VS 2008 Visual Studio 2008 Randomly Crashing When Simply WRITING Code?

Oct 25, 2009

i'm running Visual Basic 2008 Express Edition (latest service pack ... 9.0.30729.1 SP) on XP Pro SP3 with .Net Framework version 3.5 SP1 I have a rather large project I've imported from Visual Studio 2003 (Standard).The project compiles and runs just fine ... my compiled program itself never crashes.

But while I actually have the code up in the IDE, and simply adding/deleting code the whole IDE will randomly crash (usually without warning) and I loose my changes since last save.If/when I do get some hint of why it crashed, I get a window about illegal whitespace or something.... but that's rare ... usually it just crashes without warning and the whole IDE completely shuts down instantly. just deleting/adding a character is enough to trigger it maybe once every 30 minutes.

This is on a computer that is otherwise very rock solid .... no other program ever crashes, etc.

View 1 Replies

VS 2008 Creating A Password Application With Do Loop

Oct 19, 2011

VS 2008 Creating a Password Application with Do Loop

View 4 Replies

VS 2008 Basic Image Viewing App Crashing On All Animated .gif?

Jul 7, 2009

Well after coding a very basic image viewing application all seemed well. All animated .gif files played beautifully, all .png, .jpg, .bmp, etc, initiated well. However I've now, for some unkown reason, hit a snag. The animated .gif files still play, but they crash after a few seconds of play. Providing this error:

Quote:

ExternalException was unhandled A generic error occurred in GDI+.

Here is my

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()

[code]....

why it's not working?

View 11 Replies

VS 2008 - Use Threads In Loop To Make The Application Less CPU-intensive?

May 4, 2009

I am trying to stop the following piece of code from taking up too much processing power of the PC by using threads. But I keep getting errors when I use threads:

[Code]...

View 3 Replies

C# - Thread Start In Form1() Crashing Program On Windows Server 2008

May 12, 2011

I'm getting a really strange error. I have a program that needs to run a thread on startup, and for some reason when I do myThread.Start() in Form1() it will crash with "program is not working" (But only on Windows Server, not on my local machine!). However, if I put the same code under button1_Start() it works no problem. What gives?

EDIT A little extra information: In my thread I have a line of code that uses invoke

Invoke(new Action(() => richTextBox1.AppendText(string.Format("Updating {0}..
", DateTime.Now))));

And for some reason the crashing goes away after I make the thread sleep for 2 seconds before it starts executing. Am I using the right method to execute code on the app startup?

View 2 Replies

VS 2008 Program Works Before Loop But Not After Loop

Aug 11, 2009

I assigned an integer as 1, and looped my program using:[code]I can recieve the packets without looping, but once i loop, i receive nothing.

View 29 Replies

Controlling A Loop In An Application From Another Application?

Mar 2, 2011

I have 2 applications, "Application A" and "Application B" In application B, there is a loop that do some work Now, from Application A, I want to control this loop, in application B, so the loop gets run once each time Application A say so Up to this point, There is no problem, I just created a Mutex that I pass from an application to the other.

The problem comes when Application A want to stop the game -If application A terminate its thread without closing the Mutex, Application B does take it and the loop goes on non stop. But what I want is to exit the loop.I can immagine 3 ways to terminate the loop, but none of them apears to be the good way to do

1) Closing the mutex in application A. This will create an exception in Application B, which I can catch to terminate the loop

2) Create a custom windows message for Application A to notify Application B that the mutex needs to be close so Application B can exit the loop and close the mutex. ( However, I am using a mutex to avoid to use this windows message pathern, I do not want the UI thread to be involve in the mecanism )

3) Create another mutex that would be own by application A and that will be blocking another thread in Application B. This way, Application A by releasing this mutex can permit this other thread to set a boolean flag telling the thread in the loop to exit the loop.

To illustrate this, I made this short code. It implement the option 1) which is using the exception to exit the loop

Application A
Public Class Form1
Dim MutexA As Threading.Mutex

[code]....

View 8 Replies

C++ DLL In VB Crashing

Dec 9, 2011

I have a dll that someone made me in C++. I needed to use this dll in VB, in order to do that I had to make another dll in C++ that has functions I can call in VB.

The C++ dll I made has 4 functions. 2 callback functions that retrieve information from the original C++. And 2 functions that I can call from VB to send that information.

I know the original dll works fine as Ive tested it endlessly in a console app.

However when I use it with my dll and VB.. I get random crashes.

There is almost no code in my VB app as its just for testing. It just outputs the information so theres no problem there.

I believe the problem is in the C++ dll I made. I am pretty new with C++.I think maybe a variable gets accessed in 2spots at the same time (is this possible?) and causes it to crash?[code]...

View 2 Replies

Evaluates Loop Condition In Do...Loop Statment To Determine Whether Loop Instructions Should Be Processed

Mar 14, 2011

Makes the following statement about the code below:

**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.

Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?

See below.

Option Explicit On
Option Strict On

Imports System.Globalization

[CODE]...

View 2 Replies

App Keeps Crashing On 32bit PC's

Sep 5, 2011

My app wont start up on any 32bit PCs. It brings an error. Ive tried all the solutions mentioned like going into Compile and changing the Platform, and other things. I have come to the conclusion it Might just be something faulty with my coding. Here is the only place in my code that could be doing it.

[Code]...

View 1 Replies

My Program Keeps On Crashing

Jan 28, 2009

im creating a project on vb and every time i get quite far into it, it seems to stop taking in commands. For example i have form 1 with loads of buttons and wen i add another one and start debugging the new button (or whatever) wont be their, this has now happend three times and im getting very annoyed.

View 8 Replies

Bonjour .Net App Crashing Due To Svchost.exe?

Aug 5, 2011

I developed a .net application which uses bonjour to chat with other instances of the app on LAN. The application works fine on 5 pcs(4 with xp sp3 and 1 with windows 7) out of 6. On one computer (with windows 7 installed) the app crashes as soon as i try to register into bonjour service.

After digging deep into the problem i noticed that too many svchost.exe processes are running on the pc on which app crashes. After carefully terminating the svchost.exe's i came to know that by terminating one svchost.exe which consumes around 50Mb Ram, the app works absolutely fine.

The process path "C:\Windows\System32\svchost.exe"
Process Command Line "C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted"

When i terminate the process, app starts working fine.

PS : Even after terminating the process restarts itself and app works fine.

View 2 Replies

C# - Threading In Asp.net Crashing Server?

Mar 17, 2011

I'm trying to get threading to work in ASP.NET but for some reason it keeps crashing my local server, and simply does not work at all when uploaded online. Here's the code:

[Code]...

View 3 Replies

Combo Box Crashing Form?

Jun 1, 2009

but it's strange. I have a few combo boxes on a form that are fed via select query. They each are populated by their own table. Each of the tables feeding them have a codeassociated with a name, function etc... the code is what is stored in the form's table. I have another select query that converts the code to the name or whatever so that the user does not see the code, but the name associated with it when the form loads.What is happening is: The form loads and if i don't touch any of these combo boxes every thing is fine if i update them, I can't tab off the combo box or move the cursor anywhere, or even close the form. I have one of these boxes with the same code and it works fine.. I don't understand what is going on... I have an after update function that is the same on all of them and it is indeed updating correctly....

Public Shared Function LoadCallSource() As String
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents
and Settingsdiw07My DocumentsDaily Backupsphone memo backend.mdb"

[code].....

View 12 Replies

My.settings Is Crashing Game

Jan 30, 2012

this just makes no sense at all right now...the last time that I was debugging my game, this worked fine, now it crashes my game every time I try to load... ok, I have the users chosen font saved to the my.settings file of the game, and now, every single time that I go to launch the game, it crashes upon trying to load this chunk of the my.settings file...

[Code]....

View 2 Replies

No Errors But Program Crashing?

May 11, 2012

for our culminating activity we must make a program that uses a bunch of things etc.

i decided to go the extra mile and make sudoku.

The problem lies in generating the puzzle, the program always crashes, but there is never an error. im sure there are easy ways to make the generator, but from what we've learned this is the only way i know how to do it.


Private Sub FirstBlock()
Randomize()
intNumber(0, 0) = Int(9 * Rnd() + 1)

[Code]....

i made a function for each 3x3 square, and what happens is the block its currently on, checks for interferences horizontally, vertically, and within each 3x3 square, because computers process in order, i set it so that it only checks for previous block interferences, since this is the first 3x3 quadrant, there are no previous horizontal/verticals to check.

The code works fine, the problem is when i run it, it says its running but no form appears, i learned to use a progressbar to try and separate each 3x3 block to generate individually, to try and split the processes up 1 second at a time. the problem is, it does run, but it only generates a certain amount before it crashes, and every time its different, sometimes it generates half the puzzle, sometimes 1/3rd, sometimes only the first quadrant.

View 13 Replies

Program Crashing Using Treeview?

Feb 20, 2011

In a program I have written I have FileSystemWatcher pointed two directories. When there is a change it keys up and using a listbox rewrites the files in the folder to the listbox. This all works just dandy.. however..

I wanted to change the listbox out for a TreeView. When I first initialize the TreeView on program start, no problems, but when the FileSystemWatcher kicks in the program crashes. I have tried running the debug but it crashes without any error, just the windows error that the program has stopped working.

I am running Dual XEON Quads with 8Gb RAM and Win7 Pro up to date on all patches so there shouldn't be a problem there.

Here is the code for the listbox:

'Setup Filewatcher for Scan Folder List
Public scanfolder1 As FileSystemWatcher
Public scanfolder2 As FileSystemWatcher

[Code].....

View 4 Replies

VB App Crashing VS And Destabilising System?

Sep 18, 2011

I am really pulling my hair out on a problem with my VB Windows Forms app, which appears to be overwriting memory and causing everything on my system to start crashing - have to Logoff or Restart to get a stable system back. I have reported this problem on Connect [URL].. but no response as yet. I am hoping that someone can help me understand what I am doing wrong or how I can work around the problem.

View 1 Replies

Loop While Application Is Running?

Nov 19, 2009

I am writing a program that is connected to an rs232 port and I need it to constantly be monitoring the incoming data. I think there are a few ways of doing this like checking the buffer but I need this to be running while I am connected to the port. I have a play button and a pause button for the port. When the play button is pressed, the port is open and the button is no longer enabled until the pause button is pressed. I need to have a while loop running the entire time the play button is no enabled, or pressed. I am having a hard time knowing where to implement it in the code.

View 2 Replies

Stop My Application In A Loop?

Jun 2, 2009

I have something to ask again.. I develop a program that will send bulk messages but the problem is that when I load at least 1000 emails then I want to stop the application I cannot stop it. Is there any way to stop this application without closing the form? So that i can save the file on my listview? Here is my code upon send bulk emails. [code]...

View 6 Replies

Filling Array From File - Crashing?

May 30, 2011

it only fills the first element of the array catches on the second run through

Private Sub fillArrayFromFile()
Try
FileOpen(5, "Data.dat", OpenMode.Input)
While Not EOF(5)

[code].....

View 1 Replies

Program 2010 Constantly Crashing

Jan 12, 2012

This is an annoying issue that started less than a week ago and couldn't come at a worse time, as I have a major project deadline to meet. At least once every TEN minutes, the program crashes with the error "Microsoft Visual Studio has stopped working" -- it only occurs when I am writing/editing code while execution is paused (Edit and Continue), which I do all the time since I am stepping through rather complex subroutines line-by-line. I literally have trained myself to save after each line of code I write, delete, or change, so thankfully I never lose much, if anything, when I restart, but it is irritating and time-consuming having to set up everything in the program and get to the place in the code that I was before. I have installed VS 2010 SP1, tried deleting the .suo file, and a few other supposed fixes that I came across online, to no avail.[code]...

View 5 Replies

[2005] Picturebox Is Crashing When Their Is No Filename Available In M?

Feb 27, 2009

I want to add a picture in my picturebox. I can do this with a normal link to my directory, but I want it relatively.I also have another problem with this picturebox. For some rows in my database, there isn't a filename in the Picture column. And when I select this row in my program. The program crashes because the program can't find a filename.What can I do to make sure that my program keeps working and that there is just no picture in my picturebox?This is the code I have now

Private Sub ShowPictureTonen()
Dim dtrPicture As dtsMuziekcollectie.tblDVDInhoudRow
Dim strLinkPicture As String

[code].....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved