Communications :: Windows Form Hangs Or Freezes How Come?

Jan 9, 2011

I put this Code into a module and try to call it to start the Server side of the the applaction there also a Client but the Server side is done in a Console app but when i try to do it in a Windows Form it hangs once called to start listening. [code] i found this code on the internet that i was just playing with. its pretty neat but i cant figure out the program of the Windows form hanging issue.

View 1 Replies


ADVERTISEMENT

UI Windows Form Freezes Up?

Sep 1, 2009

I have created a custom video player in C#. This player has two forms.
1. The Video Player window ( running in primary (UI) thread )
2. The content playing window (running in a secondary thread)

Everything goes fine for nearly 5-6 hours, then the main video player window freeze. So I cannot access any of the buttons (stop, pause ,exit) in the player. But the secondary thread keeps playing the files for even two days continuously (which is the max I tested).

Things I have checked :
1. There is no memory issue, since I dispose the objects I create after playing each file (few min videos). I have checked the process in task manager, where status is running and memory usage as same as it is started.

2. I have used Begin Invoke from secondary thread to update the current playing file in the list box on the main video player window (once the main window freeze, the update is not visible).

3. I have used a timer in the main video player window and tried refreshing form, calling Application.Do Event() for every few minutes, still it gets freeze up after 5-6 hours.

Why the UI window freeze up? Is my architecture for the player is wrong? (I need to do lots of processing in secondary thread for the images and videos to be played, but it is working fine).

View 3 Replies

Windows Form Freezes On .show()

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example. We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

[Code]...

View 14 Replies

Communications :: Windows Form Border Style

Feb 28, 2009

I set my forms FormBorderStyle to None in vb.net. i want to assign a border line in different colour which is not inside the form.

View 1 Replies

Thread.join() Hangs Sometime Windows Application?

May 31, 2012

I am developing windows based video application, in my application I have to make multiple video files with different duration from a single video file. To achieve this I am using thread.join method(), when I run my application it works fine but sometimes it hangs and I have got to close my application using Task manager, I can't understand why my application behave like this?.

This generally happens when number of output files are more than 40. Is there any problem with thread.join() function, when number of threads are increased. I am generating a new thread for each output file because this is the limitation of the third party dll which I am using.

View 4 Replies

Windows Services Hangs Or Is Stuck At Line

Oct 14, 2010

I'm trying to Debug and code an program in VB.net 2005 in windows XP. When I start my service and attach it for debugging it hangs at the line:System. ServiceProcess.ServiceBase. Run(ServicesToRun)The service says it is started under windows service dialog, but does not go further in the code, it just sits there..Does anyone have any solutions to this problem? I had this problem before but it usually start after a few moments,it seemed to get progresively worst, were now it doesn't progress at all, and just stays hung. [code]

View 6 Replies

Application Hangs When OpenFileDialog = Windows.Forms.DialogResult?

May 19, 2010

Private

Sub Button1_Click(ByVal
sender As
Object,

[code]....

View 9 Replies

Form Freezes When Going Delay Sub

Feb 25, 2010

I can grab if keypressed when form active, i mean not in sub procedures..but my form freezes when Going Delay sub.. its working.. no error but cant use any control or event of form while waiting 10 seconds.. (Form's keypreview property set to true.. )

U can use This if u want to wait applicaiton but u cant doing anything when apication in waiting period..

i think i must to check keystroke in this delay sub.. or am i call Delay sub in wrong time.. i mean i call it form activate event.. should i call it another event ?[code]...

View 2 Replies

Form Freezes When Running

Jul 24, 2009

Firstly I want to state this doesn't affect the usability of my program. I made a GUI for an old cmd line program and when running the GUI's form will freeze up and be completely unresponsive. This is annoying since you can't move the form and if you open something over the form then move/close it you get the affect in the attached pic. Attached pic is the program running and the windows calculator being moved around over it.

Is there a way I can have the form stay responsive while the program is running? I don't need for any of the buttons, text boxes, etc to be editable while the program is running.

View 6 Replies

Progressbar Freezes Main Form

Jun 15, 2011

I pass progressbar byref to the processing() function on ClassLibrary. My main form freezes when i run this.How can i prevent my main form by freezing? My Function is always on the class library, so is there any way or any type of approach to this problem. I need the progressbar to be accurate in showing the process.[code]...

View 6 Replies

Timer Freezes Gui And Cant Do Anything On Main Form?

Jun 22, 2011

i have a timer (interval=4000) that does an operation , the problem is that it freezes my gui and i cant do anything on my main form , i have used Doevents , Me.refresh , but the problem still exists , I could really use some code if someone has...

View 6 Replies

VS 2008 Form Freezes On .show()?

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example.

We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

Channels(ChatIndex).Show()
The form opens but freezes.

I have also tried using

Channels(ChatIndex).ShowDialog()
Application.DoEvents()

Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB)

What would be causing the form to freeze on .show(), Has anyone else had any similar issues?

View 9 Replies

Opening A Chatroom - Form Freezes On .Show()

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example. We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

Code:Channels(ChatIndex).Show()

The form opens but freezes. I have also tried using:

Code:Channels(ChatIndex).ShowDialog()Application.DoEvents()

Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB) What would be causing the form to freeze on .show(), Has anyone else had any similar issues?

View 9 Replies

Form Does Not Respond - When Press The Send Program Freezes

Jun 6, 2009

When you press the send program freezes and you can't do any thing how i can add button puss resume and stop

[Code]...

View 3 Replies

Application Form Hangs But It Is Working

Apr 21, 2011

I have win7 pro, on my win form is a traffic light icon(when it starts it is red, when finished it is green), so that I know when job is finished. But when I run application icon isn't changing and form hangs it self, can not do nothing until job is finished. Only in the end, I see that icon is quickly changes to red and then back to green.

View 1 Replies

Form Hangs When Inserting Data

Aug 21, 2010

How to solve a form hangs problem during on inserting data to the database?

[Code]....

View 2 Replies

VS 2008 Form.Invoke() Hangs Up?

Jun 23, 2011

I'm using the following code to close a form (Inherits System.Windows.Forms.Form) but it sometimes hangs up at the Invoke() ...

Private Delegate Sub closeFormDelegate()
Private Sub closeForm()
If myForm.InvokeRequired Then

[code].....

View 4 Replies

Invoke Form - Custom Made Messagebox Opens But It Freezes

Apr 14, 2012

I am having Socket server, and I have two forms. One is the main form for the server and the other one is a custom made messagebox. When a request comes to the server the main form has to invoke the second form (messagebox). When the main form is open for the first time everything works fine. But when I close the main form without closing the application and open it again and request comes to the server the custom made messagebox opens but it freezes and looks like this:

[Code]....

View 1 Replies

IDE :: VB 2008 Express IDE Hangs On Form Redraw

Jul 8, 2009

The VB2K8 Express IDE is hanging intermittantly when I click on the form's Design tab. The tab's work area goes blank and a wait cursor appears. I can't switch tabs or do anything else within the IDE at this point. I have to go to the Task Manager, end the VB taskk, and restart the IDE. VB is at SP 1 with .NET 3.5. I have no third party add-ins or controls except for the Visual Basic Power Packs which aren't being used. At this point it is annoying and I haven't lost anything yet but it is happening more frequently over time.

View 4 Replies

VS 2008 Form Hangs Under Vista 64 Bits?

Jul 8, 2010

I have detected a problem running my application under Vista 64 bits OS.

My application is developed using VB.NT 2008 and compiled as x86

I have a main form. In this form there is an option to open other form. TThis second form must return a few values to the main form. When the user click on this 2nd form, to return values, this form hangs up (2nd form hangs up)

But for what I could have known, it continues executing the rest of code that exists after to open form. I want to say that the form dialog (2nd form) is not closed (hangs up) but it the code continues being executed, because I have seen that inserts the data in the database.

The application not returns any error and any exception.

frmWaiting (form displayed when call thread)
This forms contains progressbar
main form
Dim ThreadVentas As System.Threading.Thread

[Code].....

View 4 Replies

WinForms Form Hangs On Startup On One Machine

Jan 21, 2010

For my VB.NET application, I'm using the windows installer that came with Visual Studio. I can successfully install and run my program on any computer in our office except for one. On this particular machine, my program will stall for about 30 seconds before being able to load the main form. When I start up the task manager, the CPU is hovering at about 0 to 1%, so its not really doing anything but freezing up. It will eventually load, but it really shouldnt take this long, especially when it loads instantly on other computers. Now this machine is windows xp with serverice pack 3 and .net 3.5 sp1.

View 3 Replies

Communications :: Deploying To Windows Mobile Device

May 23, 2011

I am using visual studio 2008 professional.i am trying to deploy a simple hello world application to a hand held device.

i currently have the device connected via usb, i can run the app through vb and it deploys and runs on the device however i don't know how to create the install and install it on the device so it can run independent.

View 1 Replies

Communications :: Freeware Program For Serial Communication That Is Better Than Windows Hyperterminal?

Aug 27, 2008

Like the title says, is there a freeware program out there for serial communication that is better than Windows Hyperterminal?

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

Communications :: Client-server Communication Program - Click On CmdListen In The Server Form And CmdConnect In The Client Form

Jul 23, 2008

The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.

Client source code:

Code:

Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

View 3 Replies

Display Different Windows Form In One Main Windows Form?

Aug 15, 2010

I had created a windows forms application in vb.net. It contained several windows. Now the users of that application are telling me to display all in one main form. They want to see all the details in one form. I had implemented MDI but they want something like tabs. On different tabs different forms should be displayed. How shall I implement this.

View 4 Replies

Change The Background Of The Form To Look Like That Of Windows Mobility Center In Windows Vista?

Apr 10, 2012

How can I change the background of my form to look like that of Windows Mobility Center in Windows Vista?

View 2 Replies

VS 2008 Create Windows Service Using Windows Form Common Control?

May 3, 2012

It is possible to create windows service using windows form control in vb.net. give me the url or links. The windows forms control such as, Timer control, list-box, notify-icon control etc.

View 1 Replies

Form Controls Changes From The Windows 7 Format To Older Formats On Runtime While Running .net Windows Application

May 15, 2012

I have seen this happen before but am not sure how I resolved it in the past. On runtime the controls of my form change from the windows 7/vista format to an older version format as shown in the attached image.

How to display the controls in the format on the left (new windows format)

View 1 Replies

C# - Windows Form + Database (Sql Server)+ Windows Mobile Application?

Mar 17, 2011

i am doing project of Order Accepting system for five star hotels.Scenario is Waiter will accept order using Window Mobile which is Connected to WiFi present in hotel.I want to communicate to database(Sql Server) present on My Machine (Computer present in kitchen) through WiFi and Add order into table present inside database. This should notify my application present on Compter and should print order. After completion of Order Application from kitchen will notify to waiter about completion. My problem is How to Communicate with database present on Remote computer using WiFi from windows Mobile.

View 2 Replies







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