Detecting A Program Crash?

Feb 24, 2010

I have an Access 2007 database that runs constantly, the form on the database basically runs a timer every 10 seconds and runs a Macro. The problem I have is that when the backups run at night the network connection the database is on disconnects for the backup, so the database crashes with the error.

"Your Network Access was interrupted. To continue, close this database, and then open it again."

What I would like to do is create a small VB Application that runs on the machine that the database runs on, detects when the database has a problem, closes down the database process then restarts the database.

View 2 Replies


ADVERTISEMENT

Program Doesn't Crash On Error

Jun 25, 2010

Whenever I have an error, the program doesn't crash. It just stop executing code. The error message goes to the debug window (which I can't see until I end the program). If I have a button for example I can still click this and execute the code inside it.

I never thought I'd be asking this, but how do I make my programs crash again?

View 4 Replies

VS 2008 Code Causes Program To Crash

Oct 28, 2009

I realize the program as of now has no output, and that's fine. I have an ofdOpenDialog that I didn't include in this post as it seems kind of irrelevant, that part works fine, browse button to a path, outputs the path in a textbox for the users reference. I have the only user-entered text box set to on change: [code]But when I do this, the program just instantly stops responding. Is that a problem with my code or is the text file it's reading too big? ( Roughly 3-4000 lines.) I read somethign about a buffer once, should I set that larger somehow?

View 18 Replies

VS 2008 Program Crash On Startup?

May 1, 2009

This program I made crashes on startup, I do not know what I am doing wrong, can anybody help me?
Here is the code Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = True End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
AppActivate("Chat Window")
Do
SendKeys.Send(TextBox1.Text)
SendKeys.Send((Chr(13)))
Loop
End Sub
End Class

View 6 Replies

Program Builded With VB6.0 - Run Uncertain Time - Program Will Crash - Oleaut32.dll Error Message (Error Code: 0x00048f9) In Event Viewer

May 5, 2011

The program has errorhandle and write log function, however, it could not catch the error message in the program.

The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9

View 1 Replies

Making Program To Watch For Server Crash?

Jun 22, 2010

i have been trying to make a program that should restart my server if it crashes. Just some few problems... it won't work.[code]....My problem is that when it notices the program runs, it won't do the process again, and just stop watching for the server crash.

View 2 Replies

VS 2005 Counter Causing Program To Crash?

Mar 31, 2010

I'm not sure what I am doing wrong with counters using a delay but it keeps causing my program to crash. I am trying to use a try/catch for a IO exception involving filename already existing. I have a stored procedure that deletes the file from the directory but if my VB code tries to put the same file there it is supposed to encounter my try/catch and run the counter for a pause time until the file is deleted. Well each time it reaches the counter through debugging or not my main program (windows form) just hangs up and becomes unresponsive. I have tried waiting and stepping through/over the try catch but it still remains locked up.

[Code]...

View 3 Replies

VS 2010 Debug A Program Crash At Run Time?

May 1, 2012

I am working on a project in Visual Basic .NET 2010 on Windows 7 SP1 that previously ran fine in Windows XP SP3 but has recently started crashing immediately upon running the executable. I have made several additions/changes since the last time it was tested on XP, so it is difficult to pinpoint what might be the problem. (I commented out all of the start form's _Load event, which causes the form to load with no events triggered in the IDE, but the program still crashes in XP, so I suspect it's something other than my code, though I don't know what else could have changed to trigger it.)

[Code]...

View 15 Replies

Error Handling - Determine Which Line Causes A Program To Crash

Feb 7, 2012

I have created a vb.net program and released it to the customer. They are running the exe and at times the program crashes unexpectedly and display the message: "... has encountered a problem and needs to close" I know I should have added code to handle the exception, but is there a way that I can find out which line in the program caused the error? What is generally as good way to track errors in a program after it has been released?

View 1 Replies

Program Crash When Pass Datagridview To Other Form Using .showdialog

May 23, 2012

im using visual basic.net and this is my problem i have 2 form which have a two datagridview . when i update the datagridview in the form 2 its working fine and when i exit it in the form 1 its also update , but when im trying to to click again the edit button(from form 1) the program is automatically exit or crash.

the code from my form2 exit button

form1.showdialog
me.close
form1 edit button

[Code].....

View 4 Replies

VS 2008 Automatic Dump File For Program Crash?

Jun 1, 2011

I have a VB.NET 2008 program that crashes about once a month at a customer location. My log file does not include any clues of the crash, the program just dies with the infamous SEND / DONT SEND window.So I need to setup my customers so that in the event of a program crash, a DUMP file is created automatically, without any user intervention. Everything I read on internet indicates that the drwtsn32.exe program does that.

View 3 Replies

Emails Going To Recepients Outside The Exchange Server Domain Crash The Program?

Mar 17, 2011

I've written a program that writes and sends spreadsheet attachments to our customers. Because our customers are outside the domain of the Ex. Server when it gets to the smtp.Send(oMsg) statement (see below)the program crashes.I can use a gmail account without incident but that's less than perfect.

Private
Sub Send_EmailMessageExchange(ByVal
_from As[code]......

View 3 Replies

Visual Studio 2010 - Diagnose Program Crash During Execution?

Feb 15, 2011

My program keeps crashing every time I try to run it on another machine other than my own dev system. It runs just fine on mine but crashes on everybody else's when I install and run it. To make matters worse, it only gives me the generic "[name here] has encountered a problem and needs to close. We are sorry for the inconvenience". So i never can find out why and where it is crashing!!!!

[Code]...

View 5 Replies

Detecting Argument Of Program?

Jan 31, 2012

I want to create program that Detecting Argument of Program, For example:There are 2 Program, just call them a.exe and b.exe, If a.exe is open, the a.exe will execute b.exe with some argument, for example, argument is "arg", and I want my program to Detect the Launch Argument of b.exe ("arg").

View 3 Replies

Detecting If Program Is Installed?

Mar 6, 2012

I currently have a property in my program which returns a true/false depending on if the program is "portable" or not. I need this to know if I should do a certain thing or not.

It checks if it is by checking if the registrykey the installer creates exists, here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyProgram
(And under the Wow node if the OS is 64 bit)

The problem is, I am trying to get rid of the need for admin rights, and this is the last function that needs to be fixed. But I don't have a clue on how.
Why I want this property is because then I don't need two separate versions of my program (like a set property in My.Settings which I set before I build).

The only files that differ using the portable vs the installer is one file, but the reason why I don't want to base the result on the existence of that file is because I want to warn the user if it's not there (if the program is not in Portable mode), so he can reinstall the program.

how I can check if the program is installed by an installer, without using admin

View 1 Replies

TCP Data Arrival Function - No Server Response The Program Starts To Crash And Doesn't Work

Dec 11, 2009

Im using TCP cliente to connect and receive data from my server. To read received data im using this code:

[Code]...

It works fine when server response is detected but when there is no connection or there is no server respone the program starts to crash and doesn't work, so i have to break the debuggind process.

View 2 Replies

VS 2010 Detecting If A Program Has Closed?

Aug 5, 2011

I have a program which when a button is clicked on a form sends the form to the back, so that Notepad can open on top, then it opens up notepad

Me.SendToBack()
System.Diagnostics.Process.Start("notepad.exe", myPath & "*********.txt")

Now what I want to do is to detect when the notepad has been closed then I can bring the form back to the front and I just do not know which commands to use for this to detect a program outside of VS 2010.

View 7 Replies

Detecting Flash Drive Mounting And Running A Program?

Aug 15, 2009

I am using VB from Visual Studio.net 2008. I need to understand how to build a VBScript or Application that will detect when a flash drive is inserted into a Windows XP SP2 system. Once the drive is detected, the VBScript/App must then automatically search for any available .ppt file (power point) located in the root directory of that flash drive. If the .ppt file is found, pptview.exe will launched opening the file in question.

This script will be located in the startup folder and will run until a flash drive is entered and then it should pause until the flash drive is removed and then start searching again. This is for a kiosk to be used at trade shows for a company I am working with. The company wants this to be simple and automated and only requiring that the user setup the kiosk, which has no keyboard or mouse, plug in a flash drive with a .ppt file on it. The system will then automatically load the slideshow and play until the system is shut down or the flash drive is removed.

I am pursuing this option because an autorun.inf file on the flash drive only adds another line item to the autoplay dialog. Although it may be possible to write a small script that will select that item, there is no guarantee that the user will have that autorun.inf installed on the flash drive in question.

Also it may be better to copy the .ppt file into a temp directory on the kiosk machine, so that in the event that the flash drive needs to be removed there is not data transfer taking place, minimizing the possibility of data corruption.

Most of the file handling I may be able to handle on my own, but it is the detection of the flash drive insertion and removal that is a problem. I am looking for some clarity on this point first. I may ask other questions later, but for now that is the biggest hurdle I have to cross. [URL]..

View 20 Replies

Detecting When An External Program Ends To Start A New Event?

Apr 17, 2009

I need to be able to detect when an external program closes so that I can start another event within VB 2005. I have tried to do this by monitoring the processes on my computer. The problem is that this programs comes up as some weird sub-process. It has an Image Name, which is indented from the other Image Names, and it shows that the User Name is the Administrator. This is the only information you can get from the Processes tab. There is a Task Name under the Applications tab, however. I was wondering if there was some code to monitor the Applications tab instead of the Processes or if there is yet another way to do this.

View 1 Replies

VS 2010 Windows API For Detecting A Mouse Click Anywhere Or On A Specific Program

Jan 4, 2011

I need to create a program that can run code each time the user clicks, I can't use windows forums since its on another program. If the code can detect global mouse clicks(system wide) or only on one program it's fine.

I've done some digging and it looks like windows API can solve my problem but i really suck at using windows API and it looks like SetWindowsHookEx() can solve my problem but i don't know how to use it correctly. This is the code from Pinvoke that I modified to hopefully work for a mouse click. i'm having trouble getting this to work.

Imports System.Runtime.InteropServices
Imports System.Windows.Forms
Module Module1
Sub Main()
Dim t As New MouseHook

[Code]...

View 5 Replies

"external Component" Exception - Even The Simplest Windows Form Program Crash On Start When Starting For Debug (inside Ide, F5)

Jan 12, 2011

Had this matter on Xp machine and visual studio 2010 ultimate after windows update between december and january: even the simplest windows form program crash on start when starting for debug (inside Ide, F5) unless putting breakpoints on each line of the autogenerated (and marked as "debugger step thorugh") code.(see: [URL]) I was wondering if this matter affects only Xp machines, or if someone with Seven or Vista had same matter.

View 2 Replies

Crash Course In LINQ To SQL

Feb 26, 2010

Still trying to become familiar with SQL, and very comfortable with VB.NET. Trying to develop an application for a user to pass a value into a stored procedure.

View 5 Replies

Download Exe Causes IE Crash?

May 12, 2010

I have written a very small windows console application that got uploaded to an internal company portal. Basically this thing only looks for a registry key and if it doesn't find it, then it creates it. After that it populates a String value and exits. My issue is that when I provide this tool to our L2 support group they put it on an intranet portal.

View 2 Replies

How To Debug A WPF .NET App Crash

Dec 5, 2011

I have a long running (kiosk display application) WPF vb.NET App which is crashing after about 15 hours.

I've tested it twice, it's crashed almost at the exact same time.

I have no idea where to start.

View 1 Replies

Application Crash On Exit?

Aug 5, 2011

I have recently implemented to following code on a good deal of my forms.

Public Overrides Function InitializeLifetimeService() As Object
Return Nothing
End Function

It has worked great to solve some of my odd application hangs when the application has been running > 1 week.However, when the user closes the program I now get an Application Crash screen.how to stop this? how to put it back to "normal" with a global variable?

Public Overrides Function InitializeLifetimeService() As Object
if readytoExit then
' Return... not nothing?[code]......

View 1 Replies

C# - How To Deliberately Crash A COM Object

Jan 5, 2011

Maybe a strange question, but I need to test the stability and error procedures of the host process (caller) that accesses COM objects. Therefore I need some easy/short methods to let the COM object(s) crash itself.

Addition 1: With crash I mean the type of crash that can take the caller down also.

Addition 2: I own both the code of the caller as the COM server.

View 3 Replies

Cannot Use SB_GETTEXT (results In A Crash)

Jul 30, 2010

I'm currently trying to send the SB_GETTEXT message to a status bar, but it always crash and I don't why (the SB_GETTEXTLENGTH works fine, but not the SB_GETTEXT). Below is a VBA code I tried to use in Excel to read the status bar text of Worpad. The first code using WM_GETTEXT works well, but the second code that uses SB_GETTEXT always crashes.

'------------------------------------------------------------------------------------------------------------------------
' VBA - Excel 2007
'------------------------------------------------------------------------------------------------------------------------
'API & CONSTANTS declaration

[code]....

View 5 Replies

Client Crash On Startup?

Mar 23, 2009

I've made a client beta software in VB and use ClickOnce to install/upgrade clients. Everything works OK until I upgraded to .NET 3.5 SP1 and implemented SQL Server Compact 3.5.All clients got an upgrading error. The solution was a reinstall from the download page. All clients works OK exept one; The client crash on startup on a Vista 64-bit PC. I cant' find the error?Tool/platform:VB / Visual Studio 2008 SP1.NET Framework 3.5 SP1The following prerequisites are required: * Windows Installer 3.1 * .NET Framework 3.5 SP1 * Microsoft Visual Studio 2008 Report Viewer * SQL Server Compact 3.5 Morten Dahl

View 1 Replies

Crash - .net Application Only Works On 64-bit PC's?

Mar 29, 2011

I have had afew people test my application and all of the 32-bit users are telling me it is not working.

Problem signature: Problem Event Name:
CLR20r3 Problem Signature 02: 1.0.0.0
Problem Signature 03: 4d9235a5 Problem

[code]....

View 2 Replies

Crash When Loading Webpage?

Oct 9, 2010

Basically, I have a Web Browser object on a Visual Basic form. However, about 5 seconds after it finishes loading ANY webpage, the entire program stops responding. I figured the issue was related to internet explorer, so I updated to Internet Explorer 9 Beta and the issue is fixed (this is a very strange fix)!!! However, Internet Explorer 9 is not available for Windows XP. what might be causing this and a possible solution for computers that are running XP?

View 1 Replies







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