Multithreading - Threading In VB Console Application
May 4, 2011
I have a console application that is built in VB.Net. Now I have a timer in that application. All I want to do is at a particyualr time i will call another exe (which is built in VB 6.0) and again get the control back to this console application. Now what is happening is that I am being able to call the second exe from the console application, but then the control is not returning back to the same console application.
View 1 Replies
ADVERTISEMENT
Aug 31, 2011
I have some functions in a web application that do a lot of calculations and as a result have high CPU usage which affects the rest of the application when other users are accessing it. I have tried background-worker to no avail , the only thing that seems to work in using another thread and setting the priority to low, can the UI be updated from a worker thread? specifically I am trying to bind a grid to a dataset processed in the worker thread
View 1 Replies
Mar 7, 2012
I've been looking at threading to make my webapplications more responsive. I've found out how to thread a sub that takes no variables and doesn't return anything, but I can't find out how to achieve this for a function that takes variables and returns something. here is an example
[Code]...
View 1 Replies
Jun 10, 2011
Sub Main() Try'process i files on their own thread
[Code]...
I'm running into a problem when I stop the debugger, the console window stays open, and I can't kill it via task manager.
View 7 Replies
Jun 1, 2009
I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up?
View 5 Replies
Aug 8, 2010
I am currently working on an application, where I am using a console application, that will set up the application prior to the main form is run. This is no problem I've got that all working perfectly, the only problem I have is that the console is showing while the application is running, I was wondering whether anyone knows any way in which I would be able to hide the console before it gets shown to the user.
View 12 Replies
Dec 15, 2011
How do I get the console from closing immediatley upon opening in a Console Application program? I have all of the code written but when I run the program it pops up the console window and then immediatley exits so I am unable to read what is in the window to see if my program is operating correctly. This is the first time I've ever used a console window so I don't know where in the code I would need to put "whatever it is" I might need to put to keep the window open until closed by the user.
View 7 Replies
Aug 23, 2009
It sounds confusing but it's not really. What I need is basically a way to emulate the console style text, without using a console. What I'm really doing is trying to do a matrix effect on my form background, by drawing symbols and moving them, alternating their colors (see this video for what I mean).
Is there a way to do this effectively with a timer and a draw event, with the timer calling the draw event and changing the intervals?
View 3 Replies
Nov 4, 2010
As far as I understand from the docs, it seems that Application.Run() starts a message loop on the current thread, which in turns enables it to process user input (Is that right?).The overloaded version Application.Run(Form) basically does the same, only it exists when the form closes, and it shows the form by default.timer ticks after 20mns, and has to execute say approx. 15 tasks one by one, every time creating an instance of a progress dialog, initially hidden in the taskbar.
View 1 Replies
Sep 14, 2010
I am trying to use the System.Diagnostics.Process class.I have the following Windows Forms application. It consists of 1 Button and 1 TextBox. The only code is for the button click event as follows.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()
[code]....
View 2 Replies
Feb 7, 2010
I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?
View 9 Replies
Dec 22, 2011
modify console application below to window form application for me.I've tried by myself for million times, but i couldn't console application.rar?
View 2 Replies
Sep 9, 2009
I know there are many cases when it's best to multi thread an application but when is it best to multi thread a .net web Application?
View 5 Replies
Jul 18, 2012
i have a vb.net application that plots 16 plots immediately, the plots data are realtime. the 16 plots must draw the points at the time they receive them (must be no delay), to do that
1- i made a timer with ticks at 50 ms.
2- at each timer tick call the plotting function 16 times (with a graph name as parameter)like that: [code] it made a big delay, when i used threading the application became unresponsive.
View 5 Replies
Apr 13, 2012
I have a console application code below. I am trying to convert this to a windows based form application but I don't know where to start. This code asks you to input a website and then it gives you the IP address for that particular website the user enters. All the code works fine but I want this in a windows form application.
using System;
using System.Net;
using System.Net.Sockets;
class GTest
[code]....
View 11 Replies
Aug 11, 2009
Okay so basically I want to see if I can make an windows application or just a console application in VB.NET that will verify an MD5 Checksum. I have no idea how to start this out, but I have the ideas of what I'd like to make it.
[Code]...
View 14 Replies
Jun 15, 2009
I am working on adding multi-threading to my application. I have done two applications using multi-threading following a tutorial of sorts, and modifying the code to "get my feet wet."
This is the first time I am trying multi-threading within my own application, and I feel I should be beyond this type of problem, but after a 3 hour search on the forums, I can not find a solution, so I am posting this thread.
The section of code with the error
vb.net
Imports System.Threading
Imports SldWorks
Imports SwConst
[Code]......
View 9 Replies
Mar 8, 2009
My mdi VB.Net application performs a long operation on some data. Ideally I should use a separate thread to prevent the dreaded "Not Responding" message.My problem is if I use a separate thread users then have the ability to click on other controls in the application which can directly affect the operation my background thread is working on, creating an error.
Is there any way to prevent all the mdi windows, toolbars and other controls from receiving mouse clicks and keyboard input during my background thread's operation?
Or is there a way to clear the message que before performing a Application.DoEvents?
View 5 Replies
Mar 2, 2011
I have written below console application in VB.net. My intention is to write an application that triggers every one minute and perform some task. But when I run this application it is consuming 50% of CPU.
[Code]...
View 4 Replies
Apr 5, 2011
I am working on an application that is taking pretty long to execute. I started playing with mutli-threading and it seems to have greatly sped up my app. Problem is that threads are still executing and the rest of the code executes before the threads finish. Here is my
[Code]...
View 4 Replies
May 13, 2012
I have this little application that is using a System.Threading.Thread.Sleep, application runs great but Windows thinks the application is not responding even though it is running.
[Code]...
View 14 Replies
May 2, 2009
I have one applicatin developed in my ap i have two main functionalities
1)Copyig Folders & Files from one source to destination
2) And I am showing status of copying in richtextbox and progrss with progress bar
Here i need to use threading bcz i am copying files from one server to another server and some large size files while copying my application always gone to stuck and i am not able to see status of copying and progressbar so how i use threading in my applicatio to put two functionalitis in two seperate threads.
View 4 Replies
Sep 7, 2009
Is there a way to convert a windows form application into a console application in visual basic?
View 2 Replies
Sep 24, 2010
detect whether the current application is a console or a winforms application.The reason that I want to do this is that I am developing a library with a global error handler in it and I need to know what type of application it is in order to be able to subscribe to the appropriate exception event.Obviously I could get the user to pass in a parameter specifying what type of application it is, but I would rather deal with that automatically so its all encapsulated from the user of the class.
View 1 Replies
Nov 24, 2010
We currently have +- 20 different console application developed in VS2008 and running at different scheduled intervals, all controlled by Windows schedular. The problem we have come accross is that it is becoming increasingly difficult to manage and maintain these console apps. In some instances a console app will just fail or never run to start with and this creates a lot of problems. In many cases one console app is dependant on another and if 1st one fails well...you see where this is going.
I am looking for a new solution that will help us to trace, debug and manage these console apps better. We are preferably looking for a gui front end, maybe windows app where we can set the intervals for them to sun and view some error reports if they did not run.We are port all the code for the console apps to which ever new appliocation we develop.
View 4 Replies
Sep 29, 2010
I have a problem. I have OCX that works in Form based application. But when I try to use it in Console based application it gives:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
View 12 Replies
Aug 30, 2011
I have a shared class library which is being used by an asp.net web application and a console application.In the web.config of my web app, I have a sectionGroup within the configSections declared, and then the matching settings.
[Code]...
View 1 Replies
Apr 13, 2010
I am maintaining some VB.net code and I am more of a C# programmer. I have taken over maintaining several projects from people who have since left the project. The manager tells me that some of the VB.net programs are console applications. Yet in looking through the source code I am not able to distinguish wether the code is for a console application or for some other VB.net program like a VB.net windows application. Can someone tell me if there is a way to determine if a VB.net program is a console application.
View 3 Replies
Apr 8, 2012
I have a console application that asks the user to press number 5 to close the application. but i don't know what code to put so when the users press 5 the console application just closes?
View 5 Replies
Apr 24, 2012
i have created a very simple console application in vb.net that emails me some info from the db daily. everythign works in my dev environment, however when i move it out to production and try to run the executable, i get the following error message:"A problem caused the program to stop working correctly. please close the program"i have put in some exception checks in the code:
Dim output As String
Try
output = FormatIndividualRecords(False)
[code].....
View 1 Replies