Application Crashes After Few Hours?

Mar 27, 2011

I am writing a system that utilizes the Timer to execute a command after an interval of three seconds. The command is to send a trigger to my RFID reader and hence the program will then decode the received data and changed it to information. It runs fine for the first few hours, but it will crash after that and the error given is an "System.NullReferenceExeption - Object reference not set to an instance of an object." error. Initially, i thought that it might be something that relates to my comobobox selected index change event that might be causing the crashes, but yet the application is crashes after i removed the section.

I fail to find the reason of the crash, even after spend fewing days finding the memory leak or some other events that might cause the crash.

I have insert TRY CATCH METHOD, just to catch the exeption error message that might cause by one of the codes, but still it doesnt show me.

View 1 Replies


ADVERTISEMENT

Application Only Runs For A Few Hours

Mar 17, 2011

I have 2 applications, 1 that goes out and grabs data every minute and inserts or updates that data depending on a time interval into sql tables, the other 1 goes out at the top of every hour and grabs hourly data. Both of these applications run perfectly fine when they are compiled and published to run on my development PC, both do xml validation and check for duplicate data prior to any sql insert so I know it's not getting SQL exceptions.

When I move them to the Production Server the 1 minute application will work for a few hours and then freeze up and stop working.The hourly application half the time won't work at all.

I've made sure to include a local copy of the references when I compile/build and publish the application. I've made sure the Production Server is up to date with the latest .Net framework.

View 1 Replies

Application Crashes For Other Users

Jun 8, 2010

I recently finished an application which I spent a long time making, but when I sent it to my friends so they could beta test, everyone single one of them said it stopped responding on start up. I took the .exe out of the project>bin>debug>application.exe and thats what I gave them, and it doesn't crash for me, so i was wondering what might be causing it to crash, or if they would need extra files for it to work properly?

Also, when my friend opened it, he says he got an error that says:
Name: Microsoft .NET Error

View 1 Replies

Application Crashes On Client?

Nov 2, 2009

I have created a program in Visual Basic 2008 Express Edition, and it runs fine on my computer, but on client computers (which do have the .NET |Framework installed), it crashes. I have ran Win dbg, and it says the program encountered a break instruction exception. I have googled a lot, but can't make the program work on client computers.

View 6 Replies

Console Application Crashes?

Apr 24, 2012

i have created a very simple console application in vb.net that emails me some info from the db daily. everythign works in my dev environment, however when i move it out to production and try to run the executable, i get the following error message:"A problem caused the program to stop working correctly. please close the program"i have put in some exception checks in the code:

Dim output As String
Try
output = FormatIndividualRecords(False)

[code].....

View 1 Replies

Schedule A Task In VB Application To Occur Only In 24 Hours?

Jul 29, 2009

how can you schedule a task in VB application to occur only in 24 hours. let's say every 11:25pm

View 1 Replies

Application Crashes When Use MSFlexgrid In 64 Mode?

May 21, 2010

In my application (VB2008),I am using MS flex grid and it was workingfine on 32bit mode. When I tried to compile the same code base in 64 bit ,it crashes the application.

View 2 Replies

Application Crashes Without Specific Error

Oct 16, 2010

I developed one application in VB.Net 2010. It worked fine on my laptop.[code]...

View 1 Replies

VB Application Crashes When Trying To Show The Next Form

May 21, 2009

I have a VB application in .NET Framework 2.0 and I'm using VS 2008 Professional for development. The application is running without any problem on some PCs and it's not running on one of the PCs. To make sure that nothing is wrong with the that specific PC, I tried to reproduce the issue on my machine. So I formatted my PC and reinstalled everything. After installing .NET Framework and required drivers, the ran the application i got the same error. Then I installed VS 2008 and open the project to debug my code and then I realized that the exception is being thrown on this line:

********************************
Private Sub btnEnterRecords_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnterRecords.Click
' Dim frmNext As New frmIncident()

[Code].....

View 1 Replies

32 Bit Application Crashes When Exiting On Windows 2008 64 Bit

Jan 4, 2011

We have an application that works well on XP/Pro, Vista, Windows 7, Windows 2003 Server, Windows 2008 Server (32 bit) but is problematic on Windows 2008 Server (64 bit). The application uses an unsigned activeX control which may or may not be related to the problem. To install we need to add the program name and regsvr32 as DEP exceptions. Once that is done the application installs correctly and operates normally except when the application closes.

If a user clicks the 'exit' button our code basically says 'unload me' (where me = the main form of the application) and there is no code in the form_unload section of the program.

Everything works well on every Windows platform except Win 2008 64 bit where we get

APPCRASH
Application Name: PDFPrint.exe
Application Version: 10.10.0.18
Application Timestamp: 4d238253

[Code].....

After we continue to close the program we see a message box with run time error 216 at 00002B24 message.

View 2 Replies

Application Crashes At Run Laptop, But Works On Netbook?

Jul 2, 2010

I seem to have a problem with an application i made. I hope you can help me with this as it has puzzled me for awhile now.

[Code]...

View 7 Replies

Application Crashes When Calling Embedded Resources?

Jul 3, 2009

I'm writing a console application in Visual Basic 2008 Express. I added several text files to my project as resources. Specifically... I went to my project's "Properties" page and selected the "Resources" tab. I clicked the "Add Resource" dropdown and chose "Add New Text File". I entered some simple text and saved the file as "Welcome.txt". I built the entire solution.n my code, I use console.writeline(My.Resources.Welcome) to display the text

View 1 Replies

Application Crashes While Using GetKeyboardState Win32 API In 64 Bit Mode?

May 20, 2010

Iam using GetKeyboardState API in my application for getting keyboard state . it was working fine for win32 applicati9on. When I moved to 64 bit application gets crahes without popping any exception message.my sample code is as given below:

Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
Private Declare Function GetKeyboardState Lib "user32" (ByRef pbKeyState As Byte) As Integer

[code].....

View 2 Replies

Application Stopped Working And Just Crashes On Startup?

Sep 12, 2009

Application stopped working and just crashes on startup?

View 11 Replies

Loaded PDF In AxAcroPDF Crashes When Closing My Application

Jan 14, 2009

I have a small application (in VB.NET 2008) which gives the user the option to open a PDF document. This document is stored on a mapped network drive and is loaded in to the AxAcroPDF Control.

When closing my application I get the following message

The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read.

I've been google-ing this error message, but seen only a lot of problems, but no solutions.

I also tried using the WebBrowser Control, but this gives the same error.

View 2 Replies

Serialport Datareceived Crashes Closing Application?

Jul 8, 2011

I have an application with serial port datareceived event. My instrument sends me aprox.00bytes every 1 second. Which I then process and update few textboxes on the main formRecently my application started crashing if I press close button.I am guessing form_closing closes serialport at the same time datareceived event triggers in which the sp1.bytestoread causes the crash.1. I added synclock in datareceived and in form_closing.Within synclock in form_closing I removed datareceived handler.

View 8 Replies

Access Database Engine 2010 Crashes Application

Apr 8, 2011

I have a vb.net 2005 application that connects to an access database. I use Access Database Engine 2007 to connect to to this database.

Everything worked fine until i install MS Office 2010. After this, the application started to crash, returning the error 'application has stopped working'.

I've a Windows Seven Enterprise SP1 32bits.

When i debug the application, visual studio also crashes. I get the following error, closing an OleDbConnection: 'vshost.exe stopped working'.

I decided to run some tests. I installed my application on 2 virtual machines: a windows xp sp3 and a windows 7. When i installed ACE 2007 everything worked fine, but when i installed ACE 2010, thats when the problems began. This behavior ocurred on both machines.

View 5 Replies

Application Crashes For Some (but Not All) Customers When Clicking A Listbox After Printing?

Feb 3, 2011

We have a rather large VB.NET accounting application that crashes occasionally for some customers. I have now been able to reproduce this particular almost 100% in my test nvironment using certain data. The crash happens when clicking a list box after printing a report. The form involved has a list box listing available reports. You select one or more reports from the list box and click the print button. After printing, if you click the list box again, the program crashes, with an exception that does not seem like one VB.NET should even be able to produce.The exception message is: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."The call stack is:

1. System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
2. System.Windows.Forms.NativeWindow.DefWndProc(Message& m) [IL offset: 0x3e]

[code]....

View 12 Replies

Asp.net - IIS Application Pool Crashes When Using Context.Server.Execute?

Apr 13, 2012

I am having an issue with an ASP.Net page I am writing and struggling to diagnose why this page is failing.

I am trying to do this:

Dim st As New StringWriter()
Dim strURL As String = "CourseProgramme.aspx?id=3733"
Context.Server.Execute(strURL, st)
txtNotes.Text = st.ToString()

The aim here is to get the HTML back for the page that has been specified in strURL and then display it in a textbox. However when I run this code it crashes the ApplicationPool in IIS and when I look in event viewer I see this error message:

A process serving application pool 'blueprintdev' suffered a fatal communication error with the Windows Process Activation Service. The process id was '5284'. The data field contains the error number.The strange thing here is that in another page I do this code which works fine:

Dim strDutyStartDate As Date
strDutyStartDate = TextboxDutyStartDate.Text
Dim st As New StringWriter()

[code]....

As far as I can see other than the URL I am passing, which does exist, I cannot see a difference between the two.The page I am developing is in ASP.Net with .Net 4.0 however in the website there are some classic ASP pages. IIS is running at version 7.5.7600.16385 on Windows Server 2008 R2 64Bit.So far I have tried setting the application pool to run in 32bit mode but that causes errors in other areas and the site will not load.

View 1 Replies

.net - Why Does A Large Amount Of AppSettings Calls To A None Existent Key Cause Application Crashes

May 23, 2012

There is a very strange problem with a Windows Service I am working on that I would like to understand why it occurs. The service loops every 5 minutes and then within that loop it loops through keys containing webservice URLs that are numbered such as:

<add key="URL.1" value="http://dummy1.com/Service.asmx"/>
<add key="URL.2" value="http://dummy2.com/Service.asmx"/>
<add key="URL.3" value="http://dummy3.com/Service.asmx"/>

The code that does this check is:

If String.IsNullOrEmpty(AppSettings("OM." & intCount & ".Name").ToString) Then

When it hits a key that doesn't exist an exception is thrown and the service stops and waits for 5 minutes until the next loop.This usually works great but every week or two the Windows service will crash on that line without any Exception. The application log has a line from before that line but nothing after, none of the Try Catches are hit (the main one is catching the base "Exception" class).In the Event Log for Windows is the following:

Faulting application name: MyService.exe, version: 1.1.2.0, time stamp: 0x4fa22a24
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xe053534f

[code]....

The weird part is that this line of code is executing fine 300 times a day for at least a week which is around 2000 times before that one time it causes a full crash of the application. why this is occurring? I have changed that line of code to not rely on Exceptions and it has been working fine for a week now with no crash so could be something to do with too many Exceptions - maybe causing a stack overflow?

View 1 Replies

VS 2008 : Random Application Crashes: Exception Code: E053534f

Jul 26, 2011

the error code points to a Stack-Overflow I can not pin the offending code down because the software works faultlessly on some computers after deployment but on others the crash occurs when a Gantt chart gets redrawn after changing activity dates. All the computers are situated on the same LAN and connect to the same SQL server 2008 database.The application has been developed with Visual Studio 2008.

I used the same install disk on all the computers and they are all using the same date/time format. The crashes occur on both 32 - and 64 bit machines.

The error message:
Stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: Pfisterer Project Manager.exe

[code]....

View 2 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

Enter More Then 25 Hours Value?

Jun 16, 2009

I have DGV like parent form and detail form like child. I want to give ability to user enter time in detail form in format like HHH:mm, save that value in database and display it in DGV.How to format timepicker or maybe need to use other control to have ability enter time data in format like HHH:mm?

View 4 Replies

How To Add Hours Or Maybe Even Days To It

Nov 15, 2011

This Code allows you too countdown seconds and minutes but im not sure how to add hours or maybe even days to it,[code...]

View 7 Replies

Add 4 Hours To A Date Time Value

Nov 17, 2009

can anyby help me to add 4 hours to the following date time value [code]

View 4 Replies

Calculate Hours And Minutes?

Aug 11, 2010

I would like to calculate the difference between hours and minutes from one textbox and the hours and minutes from textbox two. What would be the best way to do this? I think DateTime would be the object to use, but wondered if anyone has any examples or better ways?

View 12 Replies

Calculating Numbers And Hours?

Mar 26, 2009

if i have two variables,

Dim Hours
Dim Minutes

what i want to do is add the minutes to hours, so if Hours =2, and minutes = 120 I want to say hours = hours+2, not so simple as it seems or am i missing something?

Dim hours
Dim mins
IF mins > 60

[code]....

View 2 Replies

Convert A String To Hours?

May 1, 2009

I have a string that extract it from database table row

Dim Hour As String ="4:15 PM"

How to convert the hour String to a real hour for the date type?

View 4 Replies

Convert Seconds To Hours?

Mar 2, 2010

[code]....

View 2 Replies

From Days En Hours To Minutes?

Dec 28, 2011

In a textbox the text 1 Days, 8 hours, 45 minutesI want the outcome in minutes , how do i do that ?

View 7 Replies







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