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


ADVERTISEMENT

Have A Form Show Up On First Run Of Application?

Nov 16, 2009

I would like to have a form show up on the first run of the application.

View 6 Replies

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

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

Show A Form After Application Load?

May 21, 2010

I want to show a dialog box or form immediately after my application loads. If I place a .showdialog in the main form load event the dialog shows before the application shows.

I'm trying to give some user tips when they load my application.

View 2 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

Form Statistics - Show How Many Users Are Using Your Application

Jun 7, 2011

What would be the best way to show how many users are using your Application. For instance, Having a label show how many users have used it/are using it.

View 1 Replies

Get A Listbox To Show Information On A Different Form On The Same Application

Jun 7, 2011

Im suppose to make an application that tracks electric motors in a manufacturing plant. It needs to have

MotorID:Five-digit string, such as "02340"
Description:String
RPM: Integer, values in the range of 10 to 10000

[Code]......

I was thinking about doing this part in radiobuttons

The application should be able to store at least 10 motor class objects in an array, create an input form in the application that allow users to input new motor records to be added to the array and create another form that displays all the motors in the array in a list box. This is what I got so far, I know its not much, but whats really puzzling me is how am I suppose to show all the data in the listbox in the second form.

This is whatI got for the first form

Public Class Form1
Dim range As Integer = 0
Dim voltage As Integer = 0

[Code]....

and the second form I really dont know where to even start on that one.

View 17 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

Make A Form Show When A User Uses My Application For First Time?

Apr 10, 2011

How do i make a form show when a user uses my application for the first time and only shows that time.

View 4 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

Program Crashes When Try Run It - Won't Load Form

Apr 27, 2010

I've just finished creating a program in VB 2008, and when I run it, the opening form will load but when I try proceed I get this error:

[Code]...

View 2 Replies

VS 2008 - Picturebox Crashes Using Form

Jun 19, 2010

If Not GroupBox1.Bounds.Contains(PictureBox1.Bounds) Then, and i have a stop after that to try and stop the Picturebox going off the bounds of the form which it does, but it just crashes at that point.

View 3 Replies

VS 2008 Form Crashes If A Database Object Is On It?

May 27, 2010

I have an access database that I have imported into VB2008 through the data sources and have placed a table onto a form via drag and drop.Now whenever the form is displayed it crashes VS. I have tried deleting everything off the form, only leaving the database dataset, table binding source, table adapter and adapter manager on the form, even then it still crashes.I am running Windows 7 64bit, 2 of my peers are running Win 7 as well and are having this same issue, however the computers at our college are running Windows XP and have no problem at all with it.

View 3 Replies

Timer Control On Child Form Crashes VS 2010?

Sep 7, 2011

I've created a form that has a timer control. When this form loads it counts down before running a procedure. Simple.

Now I want to subclass this form in a new VB.NET project to so that another form inherits this form (an it's timer functionality) and runs a different procedure on this new form.My problem is that when I create the form in my new project the timer from the parent form seems to be running and when it's time is up it runs and code and crashes the VS environment.

I've searched high and low but have only found references to making sure the timer is disabled at design time. I've done this on the parent form but in this parent form's Load event the timer is enabled.... the purpose of the form. So when the child form loads it is enabling the timer. How can I work around this? Can I enable the timer from the child form? Timer is not visible when the child form loads so how do I manipulate it?

View 4 Replies

VS2008 / .Net3.5: Program Crashes When Form Closes?

Feb 19, 2010

I have 2 modules and 2 forms. In the module1, I initiated the form classes and also here I have my public appexit() method.In module2, I have another class(in the form of a keyboard done by code). Form2 use this class as its control.I have:

form1_closing()
mybase.close()
)

[code]....

Now when I call appexit() in my module1 from form1, I can see that the debug is going into form1_closing but when it goes inside form2_closing, it crashing the application here.I am developing mobile device application in Vs2008.Net3.5.

View 4 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







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