Communications :: TCP Request Freezing Application

Nov 4, 2008

I have a Data Acquisition and Control application that controls at 10 Hz and logs at 1 Hz. Both of those timers call a separate. I recently added a feature to the program to request 6 characters from a server for the barometric pressure. (29.206, etc) It works for the most part, but two weeks ago a computer froze, last week another one froze, and two froze this morning. I have not had freezing problems in the nearly three years this program has been running 24/7. Turns out they disconnected the server this morning, so that explains the simultaneous freezes in two test cells. I used a try catch statement, but apparently that wasn't good enough. how I can make this code more robust?

[Code]...

View 2 Replies


ADVERTISEMENT

Web Scraping - Http Request In Program Freezing?

Sep 15, 2011

I have just made a program were i enter a proxy list then my software views a url over and over using the proxys . I was using a web browser in side the program but worked out slow.So i now have changed the code to htpp request. But now when i run the program it goes up by 2 the views then frezzes .Here is my code

rivate Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If ListBox1.Items.Count = 1 Then

[code].....

View 1 Replies

Pause Without Freezing The Application

Dec 23, 2011

I have a loop and within that loop I'm running a Dispatcher Timer.[code]Basically what I want is to show each item in the items list pausing after each on for 5 seconds. I want to show elapsed time in a label and after the elapsed time hits 5 seconds show the next item. This is not possible using the Thred.Sleep method, because it just freezes my application for 5 seconds, and shows the next item without ever updating the label with elapsed time.So what to use instead of Thread.Sleep to not freeze the application and update the label with elapsed time?

View 1 Replies

Freezing Application - No Processes Running

Oct 14, 2008

I have rently deployed a VB windows application. It uses ADO typed datasets and datagrids.

On a couple of machine, if the application is left opened for a while (about more than 30 minutes), it gives no response. In order to restart it, I need to end the process vie the Task manager.

How would I even begin to troubleshoot why it is "hanging up"?

View 19 Replies

Communications :: Download An Application That Uses .net Remoting

May 26, 2011

I have downloaded an application that uses .net remoting.

The problem is that I don't know how to configure it to communicate over the internet.

From the blog [url] says to set the tcp 192.168.1.100 . As far as I know this is the intranet IP. My external IP is different. Do I need a server or a Static IP from my provider?

View 1 Replies

Communications :: How ToI Implement Ajax In Asp.net 2.0 Application

Aug 16, 2008

How can I implement Ajax in asp.net 2.0 application.

View 1 Replies

Communications :: Make A Chatbox In Application?

Apr 14, 2011

I have an application with many things in it, and I have space left for a chatbox. I also have a server which I will be able to use to run the chatroom on.

My problem is: the code I do not know what codes I need to make a chatbox in my application (normal Windows form).

View 1 Replies

How To Disable Application Request Validation

Jun 7, 2011

I want to be able to save things like:

<script src="https://spreadsheets.google.com/gpub?url=http%3A%2F%2Foj0ijfii34kccq3ioto7mdspc7r2s7o9-ss-opensocial.googleusercontent.com%2Fgadgets%2Fifr%3Fup_title%3DBrands%26up_initialstate%26up_

[code].....

View 4 Replies

Use A Request.Form() On A Windows Application?

Aug 1, 2011

I have written a HTTP server in VB.NET but I don't know how to use the Request.Form() method on a windows application. I need it to read HTML data sent in a HTML form.

View 1 Replies

Communications :: Create An Application That Can Receive/send SMS Using GSM Modem

Apr 9, 2010

I have to create an application that can receive/send SMS using GSM Modem.

View 4 Replies

Operation Has Been Aborted Because Of Either A Thread Exit Or An Application Request?

Jan 11, 2010

I am using System.IO.Ports.SerialPort in my project. This is the first time I am using this component.
Let me explain the issue. My desktop is connected to a weigh scale where I am taking the readings through the COM port. In a particular function I need to give new settings (Baud, Parity, StopBits, DataBits) to the serialport. So I am closing the existing object, and opening it again with new settings.

I am getting "The I/O operation has been aborted because of either a thread exit or an application request." exception while closing the serial port. The code is follows

If frmMDI.SerialPortReader.IsOpen Then
frmMDI.SerialPortReader.Close() //Exception comes here
End If

View 1 Replies

Receive A Http Web Request On A Windows Form Application?

Jul 30, 2011

How can one pass http get or post methods to a windows application? I require a webserver to send a get method to my windows form application that will querry a database then reply back to a webserverI'm developing a windows based search engine that searches a MySQL database. It receives a keyword from an SMS gateway software as a HTTP get request and should reply to the gateway software using the same HTTP request.This is my code. It is correctly searching the database but I don't know how to receive the get methods on the application however it's sending the messages to SMS gateway.

Private Sub bSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bSend.Click
Dim request As HttpWebRequest

[code].....

View 1 Replies

Vb Write To Text Box While Application Is Still Waiting For HTTP Request

Jan 23, 2012

I have a form in VS2010, written in VB, and it has a subroutine calling for information out on the web using an httpwebrequest object. It takes a while for the response, and I would like the subroutine to write a message to the form (into a Label) for the user to see while waiting for the application to respond.

I tried writing the message with a Backgroundworker and then as a second thread. I got it to write the message, but it always seems to wait for the http response before writing the text. How do I write the text immediately, while waiting for the data?

View 2 Replies

Communications :: Application That Perform Actions On A Web Page - Open A Certain Link

Mar 2, 2010

I want to ask how to i do this :

1. Make my application to go to a webpage .

2. Open a certain link .

3. Find & Select an element(mostly element ID or div ID) on a web page like buttons etc.

4. Then extract data from a webpage . Like there's a word for example "Yellow" word in the web page . I need it to find it and copy it then paste into a textbox in my application.

Extra details : I am using Visual Basic 2008.

View 1 Replies

Suggestion Request ::: Database Format For Visual Studio Application?

Dec 14, 2011

I am very confused about the database type to be used in my vb.net application. I have been using SSCE database, but for that user has to download and install SSCE, which many of my users do not want. If I use Access, the security issue is very very serious.I have downloaded a few database apps from the internet, which donot require any such thing to be installed and also I see no known database format in the application folder. I wonder what kind of techniques they are using.

View 12 Replies

Communications :: Send A Command Via RS232 Communications

Jan 26, 2009

I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.

How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.

I am using this code currently without the start and end bits

Code:

View 8 Replies

Asp.net - Request() Versus Request.QueryString()?

Jul 5, 2010

I have recently started using Request("key") instead of Request.QueryString("key") to access my querystring values. However I have read that:

'Gets the specified object from the System.Web.HttpRequest.Cookies, System.Web.HttpRequest.Form, System.Web.HttpRequest.QueryString, System.Web.HttpRequest.ServerVariables'

Therefore, if I have a querystring key and cookie key which are the same, which value is returned?

View 1 Replies

VS - Create A New Application - "Request Registry Acces Is Not Allowed"

May 2, 2010

I start working with Visual Studio and Windows 7, but just when I create a new application (Doesn't matter what kind of them, Windows, Website, etc...) it gives me a mistake "Request registry acces is not allowed", then I read here that I've to use subinacl, but it also gives an error, "Not valid identifier security structure" but only happened when I tried to use "users and administrators", I mean, with subinacl /subkeyreg HKEY_CLASSES_ROOTVisualStudio.vbproj.9.0 /grant=system=f. It works or at least I believe this...

View 6 Replies

Send Data From A Windows Form To An Aspx Page And Send Back A Response - Request.Form Vs Request.BinaryRead?

Mar 29, 2012

Im trying to send data from a Windows Form to an aspx page and send back a response. Im running around in circles trying to make this work. The data im trying to send is 4 strings. So fare I have this in my code, using the build-in webclient in visual studio 2010, in the windows form sending to the aspx

[Code]...

View 2 Replies

Request() Vs Request.QueryString()?

Jan 5, 2011

I have recently started using Request("key") instead of Request.QueryString("key") to access my querystring values. However I have read that:

'Gets the specified object from the System.Web.HttpRequest.Cookies, System.Web.HttpRequest.Form, System.Web.HttpRequest.QueryString, System.Web.HttpRequest.ServerVariables'

[code].....

View 1 Replies

.net - Loading GIF Freezing Sometimes?

Feb 25, 2009

I'm trying to use a loading overlay on top of a Windows form that adds a 50% opaque layer on top of a windows form with a loading GIF, while it does what it needs to do in a background thread. The overlay is a windows form that I'm drawing in the onPaint event.

The loading overlay works fine on multiple different form loads, but fails to work properly when summoned to ensure patience during a 30 second upload process (That Prints a Word Document to PDF, then uploads that PDF to a SQL Server). This upload collects some data from the form, puts it into an Object, then operates entirely on a background thread. The loading overlay will appear, show the first frame loading GIF, then just freeze. The onPaint is getting fired and the image frame is being updated, but it isn't visible

Constructor sets the form to be UserPainted:

Sub New()
InitializeComponent()
SetStyle(ControlStyles.UserPaint Or ControlStyles.Opaque, True)
End Sub

[Code].....

View 2 Replies

FileSystemWatcher Freezing GUI?

May 25, 2010

I have a FileSystemWatcher monitoring a folder, and when many files are cut and pasted into the folder, the GUI freezes, as the 'Changed' event is fired over and over. Any way to deal with this?

View 1 Replies

My Program Keeps Freezing

May 20, 2011

My program keeps freezing. Here is my [code]...

View 10 Replies

My SetWindowPos Freezing

Jun 10, 2010

The application is freezing on SetWindowsPos,

Sub AOnTop(frmID As Form, OnTop As Long)[code]...

View 1 Replies

Delay Program Without Freezing?

Oct 8, 2010

how do I delay my program without freezing? I am sure there is another way to do this without timer.PHP uses sleep(). What do VB use?I tried some Delay or Sleep function but don't seem to work..

View 28 Replies

Forms :: While Loop Without Freezing?

Jul 30, 2011

I'm a VB.Net newbie, and would like to write a small app that runs a While loop to check a DNS domain name, and exits once the domain has been registered.

I found code at How to Get Host Name and IP Address in VB.Net - .Net Articles & Samples to resolve the hostname and handle the "No such host is known" error if it still hasn't been registered, but I have a couple of issues:

1. How to make sure the GUI is correctly displayed even though there's an endless While loop? Should I use some kind of asynchronous call so that the window doesn't freeze?

2. I'd like the app to mimize to the icon bar, and have its window title display some status information ("Still waiting/Registered!") so that I can simply move the mouse over it and know whether the domain has finally been registered or not.

View 3 Replies

Forms Freezing On .show()

Mar 6, 2012

I have an application that does not load a main form. My start up object is Sub Main. I am not using the application framework. I have several classes that handle different parts of the program.

objAlerts is the main one being used for this issue I am having.

This is how they are referenced in the main program class.

CODE:

This is the unfinished objAlert

CODE:

My issue is that the windows (alert.Show) open in a frozen state where the mouse pointer displays the hoursglass and the window does not respond. The windows show in the list of objects no problem.

Is there a special way that I should be opening these? I can open windows on the main class no problem.

I read that <form>.invoke(alert) might work, but there is no invoke on the main class according to VB.

I am thinking this might be a threading issue, but I don't know how to fix it because this is the first program that I have made using a Sub Main instead of a form.

View 10 Replies

IDE :: Dropdowns And Scrollbars Freezing?

Jul 30, 2009

I have MDI parent and child windows that were working fine but now clicking on a dropdown doesn't do anything, also scrollbars cannot be moved. Other controls are still ok, buttons and other links are still working. I should also note that if I change the child to load in a separate window all the controls work again.

View 2 Replies

IE Freezing While Accessing ActiveX?

Apr 4, 2009

Lets discuss about those created active x which got created in VB6 and not working in Vista.Here i will let you know my problem,no idea wheather we need to upgrade any runtime file in VB6 or in vista?

I have done an ActiveX to get client MAC address as its major part and runs over IE.it is successfully running in Win2000, Win2003, WinXp and even with IE7 with previously mentioned Window versions.

This ActiveX was developed in VB 6.0.

This ActiveX gets installed atomatically through a cab file, whenever the application was accessed first time.

this cab file work fine in WinXP but when we try to run this cab file in vista IE get hang

Now, we have to support it with IE7 over Vista.

let me know what should I do to make it compatible with IE7 and Vista. I am using Vista Business right now.

When the application was accessed through IE7 for the first time, ActiveX installation dialog appeared. I pressed the Install button but then IE7 threw an error message that "Internet Explorer has stopped working". After that each time, whenever the application was accessed IE7 threw the same error message.

Cab file i made in VB6 using internet and deploy package wizard,along with cab file we will get one HTM file also to get Object id and code base along with version,even if we try to open this HTM file then also IE get hang.

I tested by manually registering the ocx, also turned off the Protected Mode and enabled my ActiveX through Manage Ad-on as well, but to no avail.

View 1 Replies

Infinite Loop - TCP Freezing With .NET?

Aug 12, 2009

I made a game in VB .Net that uses tcp and sends messages back and forth.What is happening is, every so often, the message cannot be sent quickly enough, so then the TCPObj.connect() method goes into a loop, until it reaches the timeout and then spits out an error. Most of the time though, it never gets to the error, my application just freezes, and then comes back after TCPObj.connect() succeeds. How can I make the connect() method do application.doevents while it's trying to connect? Basically, I dont want it to freeze up my whole application. Since tcp.connect() is a .NET method, I can't go in and add application.doevents.

View 3 Replies







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