Application Ends After 10 Secs With NO Error
Mar 7, 2012
I created a slideshow application for 4 monitors, with diferent folder for each screen images source.It has several transition effects and time schedule. It works superb when I am in VB Studio, developing, testing, etc.When I Build it, and play it work fine. But If I try the EXE file out VB environment, it work aprox 10 secs and "disaapears" from the screen, as if somebody press "QUIT"..I can't get any error or message from windows or VB.Again if I open the solution in VB it runs perfect.
View 8 Replies
ADVERTISEMENT
Apr 27, 2009
23430 seconds = 06:30:30 (hh:mm:ss)52230 seconds = 14:30:30 (hh:mm:ss)The problem occurs when my total seconds goes over 24 hrs. So for example,95430 seconds should equal 26:30:30 (hh:mm:ss) however comes out at 02:30:30.Here is the sample code, note I have tried using TotalHours, TotalMinutes TotalSeconds however this does not give the correct result. I potentially need to be able to calculate upto 1000 hours - e.g 3601839 should equal 1000:30:30 (hh:mm:ss)
Dim ts
As TimeSpan = TimeSpan.FromSeconds(95430)
Dim hours
[code].....
View 6 Replies
Mar 26, 2009
When I run a certain project from within the IDE and an error would come up (just any error, like dividing by 0), it won't jump into the IDE showing me the line where the error occured, but the program is simply ended and I am back in the IDE!.With any other project that is not the case. I cannot work further on this project with this problem. Of course I did a PC restart, but that didn't solve it.
I got Visual Studio Professional 2008 with SP1.
View 4 Replies
Aug 1, 2011
I tried adding a loop inside this loop but continue to get the error "Null reference exception was unhandled" before the loop ends.
For rowIndex = 0 To dgvVisit.RowCount - 2
MessageBox.Show(dgvVisit.Rows(rowIndex).Cells("CoPayCharge").Value.ToString)
For rowIndex1 = 0 To dgvPayment.RowCount - 2
MessageBox.Show(dgvPayment.Rows(rowIndex).Cells("CoPayPaid").Value.ToString)
Next
Next
View 1 Replies
Apr 9, 2010
I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.
Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?
View 3 Replies
May 25, 2010
I'm slowly learning about loops. I have a couple of questions
1) When a condition is being tested.. what does that mean? I don't understand the "condition" word.
2) What is the difference between a loop that never ends and a loop that ends?
I have the code for the loop that ends and the loop that never ends. I can see the difference in the code, but I don't understand what is making it different. Here is the code below.
[code]...
View 1 Replies
Jun 27, 2010
I have 2 labels in my form. I have different content on them.I want to do the following:[code]*loop all the code above nonstop, in order to make this "sequence" running nonstop until i close this program*..Can anyone tell me what code do i need for each underlined part above?
View 2 Replies
Apr 6, 2011
Im having trouble on how to uncheck checkedlistbox items 1 by 1 after 5 secs.ex.I have two items on checkedlistbox
Checked - Item1
Checked - Item2
Then after I clicked the button Item1 is going to be uncheck and after 5 secs item2 is going to be uncheck?
View 3 Replies
Apr 19, 2011
When I draw a line on a VB form the ends are squared off. Is there an easy way to make the ends rounded?
View 5 Replies
Jun 12, 2011
I'm reading in an xml file, which is working fine with no problems, but I want to re-format one of the elements data attributes slightly.
The XML attribute output is currently Wind: NW at 6 mph
What I want to do is extract just the number from the string, I figured an easy way would be to simply play with the length of the string and assign it to another variable.
However, I've ran into a little problem.
I can use windRtrim = wind.Substring(0, wind.Length - 4) (Where windRtrim is the amended string variable and wind is the string from above)
This returns Wind: NW at 6
Which is great, but the problem now is trimming the correct number of characters from the beginning of the string as it'll be different if the number were to go over 9 (ie. 10 and above)
View 1 Replies
May 13, 2011
I need some help importing data from Excel 2003 into VB10. My goal is to import the data and save it to a 2D array for later use within the application. The data is on sheet 1 of the workbook and goes from A1 to D1072 with a header row. I have done a lot of research on line to find a solution but have been unsuccessful. From what I have found I have put the following code together. When I complile and run the program I get the following errors.
1) I think while compiling it gives me this error: The source file is different from when the module was built.
2) While running the program it stops on the connect.Open() and has this error OleDbException not handled. Could not find installable ISAM.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' Import float volume data from Excel
[code]....
View 14 Replies
Mar 11, 2010
Due to my FTP server not liking to upload .exe files in order to get my auto updater to work i have to rename the folder .file before i upload
after this is downloaded i need it to check the application folder for any files ending with ".file" and if it finds any to remove the ".file" so that it is just .exe[code]...
View 7 Replies
Sep 9, 2011
I have the most puzzling problem with VS2008 in regards to debugging my programs. Until recently I have been coding in VS2010 but due to some other system requirements with my work issued PC I have moved back to VS2008.All apps I developed in VS2010 always have and continue to debug as expected. However, any app I write in VS 2008 and try to debug, the application immediately ends before the first form is loaded. Again, if I run the same code in VS2010 I have no problems. I did notice the other day that if I debug without being connected to my corporate network, I can debug in VS2008 just fine.
View 7 Replies
Jul 12, 2009
I'm trying to fill some textboxes programmatically after clicking the bindingnavigator add button but the textboxes wont fill..Using the listchanged event of the bindingsource doesnt work neither..[code]
View 7 Replies
Aug 24, 2008
I want to make something that can on button click navigate to a page, wait the time I specified and navigate to another page..
[CODE...]
This does not do what I thought it would do..I think that the problem is that when it sees System.Threading.Thread.Sleep(5000) everything stops for 5 secs .How can I make it go to google.com and then after 5 seconds, yahoo?
View 7 Replies
Jun 12, 2010
I am dealing with a situation which I do not understand why the loop never ends. I have attached this example. I do not know what I am doing wrong.I have 8 x 8 array of integers (TheConnectionsValue (7,7))
0
0
1
0
0[code]....
View 8 Replies
Jun 23, 2009
I wrote a program using VB 2008 Express Edition and noticed that when I close the program (by clicking the "X" top right corner), sometimes the program is still showing in processes within Task Manager.What do I need to include in my programming to make sure this does not occur - i.e. make sure the process ends when I exit the program?
View 3 Replies
Apr 21, 2010
I have a text file which is about 700MB it is very difficult to open this file but there are 5800 Chapters in the file every chapter is starting from "$$NEW$$" For example [code]I want to split the text file after every chapter ends any idea ?
View 3 Replies
Sep 12, 2010
Going from VB6 to VB10 I find VB10 has much easier ways of doing things, like getting command line arguments, getting all subfolders, etc, the hardest part is knowing what commands to use. Is there a better way to detect if a string ends with certain text? I'm doing it like this....
[Code]...
View 2 Replies
Aug 9, 2011
I'm using Visual Studio Development Server (Visual Basic 2010) and it works fine. Now I've enabled NTLM Authorization because I want to test the website using a different user account. Now when I try to access the website I always get the following error page:
Server Error in '/' Application.
HTTP Error 403 - Forbidden.
Version Information: ASP.NET Development Server 10.0.0.0 .I'm using a test account which is a normal user within our domain. I've already set the access rights in my project folder to Full Access for this user but it does not help.
View 2 Replies
Jul 9, 2009
Deleting a line from a text file. This is for an ASP.net Webpage. I will have a file called Sources.txt. Example data of this file looks like this[cde]...
View 8 Replies
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
May 16, 2012
Look at this code:
CODE:
My question: When the sub ends the reference to the newReadWorker goes away since it is local to the routine but the worker still runs until it is done. Is the worker disposed of properly when it is done or should I handle the worker better. I am not getting any errors from this design. I just don't want to waste memory.
View 4 Replies
Jan 20, 2012
System.Text.RegularExpressions.Regex("#*#") is this correct..!? my text can be like #abc1234+as00# etc. ie, anything between #..#
View 4 Replies
Oct 8, 2010
I am trying to create a tool which executes some oracle procedures and telnet commands. Besides this Job my tool also needs to update a counter in some table in oracle db at regular intervals(10 secs as per current settings). So I used backgroundworker class in VB.NET to implement this back ground job of updating the counter. My problem is I have put logs at every possible exit of the backgroundworker_dowork functions but still this logic stops working after some time --7-8 hours. I am not able to understand when/where/why/how is it stopping? I am saying logic has stopped because it stops incrementing the counter. And am saying it is exiting abruptly because in _RunWorkerCompleted, I have written a log and closed the application but nothing comes in the log and application is not exiting.
Private Sub backlogicthread_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles backlogicthread.DoWork
WriteLog("Background worker", "entered")
dbbackcontrol = New OracleConnection(odbcBill)
Dim dr As OracleDataReader
[Code] .....
View 8 Replies
Jun 10, 2011
this is my code
[code]...
The problem is that, when it checks that the AbsoluteUri ends with profile it should skip the other 3 commands and make another command (To enable the timer2 at the same time) Is this possible to make this? if yes how?
View 5 Replies
Jan 9, 2012
I have 2 classess. Role and User like this
Role
Public Class Role
Public Property RoleID As Integer
Public Property CreatedBy As User
[code]....
The situation is like when we create roles, we will save who created this role. So i have a CreatedBy Property of type User. Similarly when we create a User, we will mention what role the new user belongs to .So i have a property called "Role" of type "Role". This circular reference giving me StackOverflow exception as its recursive when i create an object of User class.How do i handle this ? should i restucture my entties ? how ?
View 1 Replies
Jun 12, 2011
ine from a text file. This is for an ASP.net Webpage. I will have a file called ources.txt. Example data of this file looks like this:
View 3 Replies
Aug 13, 2009
When I install .net Frame work 2.0 I had this Error when the setup writing system register values RegSvcs.exe-Application Error The application failed to initialize properly (0xc000007b) click OK to terminate the application and i have running an blank application (blank forum) and i running it in the VS 2005 IDE iget this error: windowsapplicatin1.exe-Application Error The application failed to initialize properly (0xc000007b) click OK to terminate the application and i have a program in setup package that i made from 1 week . i have install this program and when i want to run it i had this problem
[Code]...
View 2 Replies
Feb 24, 2009
Do I have to sign my VB.NET applications? I'm getting an error: SignTool reported an error 'Keyset does not exist' But have no interest in signing anything as the project is small and will only be used internally to my department. I could create a temporary key. But why would I want to?
View 4 Replies