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).
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
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.
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]...
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.
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]...
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...
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:
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?
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:
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.
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.
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)
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.
So i am having a bit of a problem.. What i want is for my application to show the panel in the from to display a windows explorer selection.. Look here
You see the panel 2 in here... Well the panel 2 needs to display this...
Is this possible you know like with a library or an extension or something.. Or do i need to make my own System for viewing files..???
It is possible to create windows service using windows form control in vb.net. The windows forms control such as, Timer control, list-box, notify-icon control etc.
I have a datagridview which fetches data from a local SQL server. Now, I have a setting called My.Settings.database_url which indicates the hostname of the SQL server.
Now, the problem is that if the host name is incorrect, instead of getting an error, the app just freezes. So what must I change in order to fix that?[code]...
using a backgroundworker to accomplish database update it takes about 30 minsbut when I minimize the screen or someone remote access my computer it cause freeze screen of my application .Although process workes fine and application is running in background but UI is disable and saying "not responding"
I'm using a grid and the instructions SendKeys.Send("{end}") whenever I write a letter in a cell, so the cursor places at the end of the cell. It works when I write a letter, however when I write the symbol "/" it doesn't work, and when i get this instruction in the debugger, it freezes.
I have an application which runs quite good, only once every X minutes it totally freezes, and even when running debug mode from within the VS2005 IDE, Visual studio becomes unresponsive. After pressing the pause-button to see where the app might be stuck, a messagebox saying "Unable to break execution" might pop-up after a minute or two. My app uses some timers, threads, and threadpool calls. So I'm afraid I got a deadlock somewhere, although I can not find it. Is there any way to find out where my app might hang?
Note: I synclocked every routine with a dedicated object, and for queues or arraylists, I even used the synchronized methods to modify them. I don't use recursive routines, so they cannot deadlock themselves. The strange thing (to me) is that all of my app hangs, none of the threads seems to be running, nor background, nor the GUI and even the VS environment.
Is there a way in which I could invoke a windows form from a particular windows service....??
Have created a windows service, installed it and everything is working fine... Now I want to design another windows form that I would call from the service while running it I know that with the help of ServiceController class we could interact with windows service from a windows application but am not sure of the other way round implementation....
I have a VB.Net project that I am running from a local server and I need to use the credentials the user is currently logged in with to upload a file to a folder I create on a SharePoint site on the same domain. I can get it to upload if I specify the credentials but it will not work with system.net.credentialcache.defaultcredentials. It just gives me 3 empty strings and I get a 401 unauthorized error. I have seen a few threads that say you cannot use it with Windows Forms Applications. Is this true? Here is my code:
I'm trying to find a way to make backgroundworker do what's in the webbrowser. There is a time-consuming part in the webbrowserdocumentcompleted event that I want backgroundworker to tackle. Unfortunately, I don't know how to link that part to backgroundworker so that BW can do that job instead of webbrowser.
Here's what in the webbrowserdocumentcompleted event:
Sub WebBrowser1DocumentCompleted(ByVal sender As Object, ByVal e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted If CheckBox1.Checked = True Then
[CODE]...
The time consuming part starts from line 2 to line 30. My program freezes whenever webbrowser tries to do this job, so I need BW to do this specific job instead.
I am checking if one of the function keys is pressed in the KeyDown event of a TextBox using the following If e.KeyCode >= Keys.F1 And e.KeyCode <= Keys.F12 Then 'do something here End If This works fine, except when I press F10 the cursor in the textbox freezes (ie. stops blinking) & doesn't free up until another key is pressed. Does Windows use this key for some other functionality that causes this behavior?