.Net Win Forms App Crashes Occasionally, Seemingly Randomly?
Jun 2, 2011
I am developing Windows Forms Application SRacq10 in VS2010 in VB.Net. It provides a WCF duplex service and obtains real time financial market data using COM object TWS (Trader Work Station) provided by Interactive Brokers, Inc. SRacq10 works well most of the time. Occasionally, it crashes; I have not been able to observe a pattern of circumstances when it crashes. When I try to add debug to a text file, I can never make it crash; that's not an acceptable solution in the long run. Here is the fault information when running the debug version outside of VS2010:
Event Viewer:
Faulting application name: SRacq10.exe, version: 1.0.0.0, time stamp: 0x4de7a42c
Faulting module name: MSVCR80.dll, version: 8.0.50727.4940, time stamp: 0x4ca2b271
I'm currently making a Program that will automatically and randomly fill in Username and stuff like that, in a webbrowser. A yahoo account maker. and i'm stuck at the part with that image. I want to copy the image to a Picture Box inside the Visual Basic 2008 program. [Code]
i have a loop in here what suppose to add a rondomly choosen number and show it on the label .text increase every time by the the same number when appear. It does not do it correctlythat is the
Private Sub licz() Dim pbs() As PictureBox = {PictureBox1, PictureBox2, PictureBox3, PictureBox4, PictureBox5} Dim las() As Label = {Label1, Label2, Label3, Label4, Label5, Label6, Label7, Label8,
I have a strange problem where CInt (as well as Convert.ToInt32 or even Val) return -1 for a string "500". Using Gurock's SmartInspect for logging, I've checked all values at runtime (SiAuto... logs something, I'm posting the log below the code).
how to do a seemingly simple object-oriented problem in VB.NET 2010. Basically, I want to be able to write code such that I could do the following:
Dim myObject as Object myObject.Group1.Command1() myObject.Group2.Command2()
[code]....
Very similar to how VBA handles objects, such as in Excel, I can use
Dim myBook as Workbook Set myBook = ActiveWorkbook myBook.Sheets(1).Range("A1").Value()
to get the value of the cell "A1" on the first sheet. This structure has been eluding me for some time now, and it would be great if anyone could suggest how to do it. I'm currently using a class and declaring all methods as Shared Friend inside subclasses, which throws warnings when I use it as I want to in other code.
I need to get a button to enter the applications subfolder and randomly select 1 file to be played in the windows media player COM which i have put in the form. I have tried creating a shuffling playlist but i cant get it to stop after one file is played (it just goes on shuffeling to another file, and i really do not want a playlist). I manage to create a batch file to be started to randomly pick a file in that folder, but when i do this the file is being played in the systems default player..
Dim L16, L23, L45, t As Double Dim LBase, LAdjacent, LOpposite As Double L16 = 20
[Code].....
Both equations should be equivalent: I've simply replaced L16 with LBase, L23 with LAdjacent and L45 with LOpposite. Yet the first equation outputs 3586 while the second outputs 3587.
I'm kind of a newbie in the vb.net world, and I'm experience a strange problem with the toolstrip and showDialog(). I'm developing a aplication that interact with a .COM device, and when it receives a specific signal, a new window pops up.
I have a MDI parent that opens another form like this:
Dim frm As New Form1 frm.ShowDialog(Me)
That form has a button that, when clicked, does this:
CreateObject("Shell.Application").ToggleDesktop()
The button operates as expected (showing the desktop) most of the time but occasionally does not minimize the MDI parent. All the other windows, including the form above get minimized every time.
I'm trying to teach myself how to create an Occasionally Connected Application. I want to create a simple app (like a survey) that will store all the data on a server but have the front end run on the users computer. The users computer may or may not be connected to a server when the data is entered (they may be collecting data in the field).
Program does 3 things:
1. Shows data from database (ie, displays survey data stored on server)
2. Saves data to database (ie, new entries or changes to old entries)
3. Has a background thread that checks for network connection
a. If no connection exists:
i. Gets data, to show, from local database
ii. Saves data to local database
b. If connections exists:
i. Sync local database with network database
ii. To read data: Gets data to show from local database which is now synced with network)
iii. To save changes/new entry: Save changes to local database then sync changes with network, then send update call to anyone else running this app on a different computer so they will get the same changes?
I have a Windows Form custom control that displays alerts on a customer record. The control uses an Infragistics 9.1 UltraWinGrid to display these alerts, which is filled from a dataset populated by a business object. Some users are having issues viewing these alerts; the grid will be completely blank, like the fields were hidden for some reason. This sample code shows how the grid is populated:
Private Sub InquiryCallbackAlertList(ByVal sender As Object, ByVal e As FunctionRequestEventArgs) Try 'Code to populate the dataset mdslist AlertsGrid.Visible = True [Code] .....
I have not had any success finding anything out about this problem. I did add some trace logic to check the 'HiddenResolved' property on the grid rows and am waiting to find out the results of that. Is there anything else that could be causing this grid to only be hidden for some users and not for others, and also could anything else be causing this only to happen occasionally?
Beginning development with SQL Server 2008, VB - Visual Studio 2008 on an application that will deploy laptops remotely for 6 months or more. The laptops will have no network or internet connection. There is a requirement to sync DB changes via shipment of USB flash drives.
The remote app will have a subset of the home database data. Some tables need to be synced bi-directionally, some uni-directionally. When the laptop comes home, it will do one last sync, the local DB will be wiped, and it will connect to the home DB.
Being that there are some identity key columns and the remote is only a subset of the the home, I am not sure that SQL Server replication or synchronization functions can be utilized.
Should I Create SQL Server Compact DB's on the remote system when it is deployed and do a table by table compare (in code) to another compact DB created on the flash drive when a sync is needed?
We have a vb application with many forms that contain a "lookup" button that has an icon called find.ico. Once in a while, a user will open one of these forms and get the below error but not every time. Has anyone else run into a similar situation? Since it is not consistent, it's been very difficult to track down.
I get this error while im following the "Walkthrough Creating an Occasionally Connected Application" [URL]
Im already in the " To configure tables for local caching" > step 4.
Then when trying to connect this error pops.
"Failed to sync database" <a href="http://tinypic.com" target="_blank"><img src="http://i45.tinypic.com/ur3fq.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
While writing an app that uses a couple settings, they occasionally get re-set to empty. I haven't seen any pattern to this, but I do have a vague memory that there are certain circumstances that will reset the settings in a project under development. What are the circumstances that cause the settings to be reset?
I have an application written in VS2010 that targets FW2.0..It has no dependencies other than the framework.The application runs fine on the local drive.But one user tells me that he already had FW2.0 installed but had to install FW2.0 SP2 in order to get the exe to run if it was placed on a network/shared folder? Why would running from a server/shared folder make the application crash if Sp2 wasn't installed? some network/path error that was was fixed in SP2 that doesn't affect the app when running off the local C drive ?
In my VB.net Winforms application I'm using the ITaskbarList3::SetOverlayIcon interface to set status overlays on the application's taskbar button (under Windows 7). This all seems to work fine for me, with the icons being shown and removed correctly.From the form load event, one of my functions makes the callSetOverlayIcon(parentForm.Handle, IntPtr.Zero, String.Empty)(where parentForm is the form which the load event has fired for) which very occasionally (on other people's machines) throws the following exception:
System.Runtime.InteropServices.COMException (0x8007057A): Invalid cursor handle. (Exception from HRESULT: 0x8007057A) at MyNamespace.TaskbarNotify.ITaskbarList3.SetOverlayIcon(IntPtr hwnd, IntPtr hIcon,
I have a bit of code that jumps around a few domains and adds a user to each of them. This follow is a piece of code I had to write to get around the issue of the .add and .invoke being ran asynchronously and occasionally causing errors.
It connects to the domain in question, passing a "CN" from the code in as a search filter but receives a COMException which is normally a LDAP sting config issue. The connection string in this is fine so I am not sure why it is having such a hard time.
Function GetUser(ByVal UserId As String) As DirectoryEntry Dim objRootEntry As New DirectoryEntry objRootEntry.Path = "LDAP://DC=SERVER,DC=LOCAL"[code]....
Following is the OnCallBack (async communications handler method) in C# and translated to VB.NET.The c# one works fine, but the VB.NET one gives a compilation error: "Property access must assign to the property or use its value." The error happens on the following line:
I have a VB .NET Application which I have written for my company which occasionally throws a message"System.IO.IOException: An unexpected network error occurred.", that I have been unable to figure out the issue.The application is a Backup program which to simplify for this post does the following
I've had an app running without problem for a few months now. When the app crashed it would pop up a message where I could look at the error message to determine why it crashed. After a recent Windows 2003 update, when the app crashes it no longer pops up the message, writes to any log or appears in the event viewer so I have no idea now why it's crashing. Is there a way to determine what is going on that would help me see why my app is crashing?
I'm using VB6 SP6 and every time I close the editor it crashes.The application fails whenever it is closed, regardless of whether a project is loaded or not.
I am using VB.NET Framework 3.5 . I have a very complicated program with over 40 forms and 100s of lines of coding. Earlier today, this program worked perfectly. I decided to change the Assembly Name from APA to Salamander. I do not get any errors and things seem to be going fine. Upon the next debug, the splash screen loads fine. (I am using a timer to proceed to the main form, not the inbuilt splash screen setting as I found it to be more reliable). However, when the main form loads, none of the pictures (resources) load and it exits itself immediately yet no errors appear at all. I think it might be to do with the .resources file but I really don't know. As I only started Visual Basic less than two months ago I'm not sure what all the files other than .vb files actually are.I really don't want to have to completely rebuild the program as my release date is in five days and as I am still at school I don't have time to complete it on top of homework. I have tried changing the assembly name back to APA again but it still does not work. I am completely stumped.
I have an application which won't run on a German version of XP. It crashes when trying to load a setting from a .exe.config file. The line it fails on is: [Code] however the value in the variable ends up as 8.0 (it is a single). In an English version of XP the value in the variable ends up as .8 as one would expect. Weird huh? Anybody got an explanation?
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.
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
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.