Search Result

Collapse
18 results in 0.0046 seconds.
Keywords
Members
Tags
threading
  •  

  • Dave750
    started a topic C# Queue

    C# Queue

    I am very new to C# and am writing a program that needs a Form with some controls and 2 other separate threads that run continuously and talk to each other.

    this example has worked really well for me in a similar application in Python in the past and I understand it well, so I would like to bring it over to C# if possible. I am stuck at how to share the q object between the two classes. Can anyone point me in the right direction?...
    See more | Go to post

  • Backgroundworker and how to lock the shared object

    Hello C# Gurus,

    My question is about threading in C# (backgroundwork er and shared object)

    I have a communication class designed with singleton pattern (only one instance )

    private PRS485 serial = PRS485.RS485;

    Inside this class I’ve implemented a backgroundworke r for serial communication.
    With the help of PData class I’ve created a shared object between the main thread and backgroundworke r...
    See more | Go to post

  • Threading: Threads stall, while others run.

    When the program starts, it checks for the amount of threads the user wants to use to download files with. The threads are then created. When the user chooses a file to download, the threads begin grabbing the file until it's fully downloaded.

    The problem is, some threads stall right from the start, & just sit there doing nothing.

    The global work variable is Sync-Locked, then quickly released by each instance, &...
    See more | Go to post

  • oystgoymp
    started a topic Why does threading lock in different classes?

    Why does threading lock in different classes?

    Ok first I must preface this question with a disclaimer, I'm really new to threading so this may be a 'newbie' question but I searched google and couldn't find an answer. As I understand it a critical section is code that can only be accessed by one thread, the danger being one thread will overwrite a value before the other is finished and vice versa. What can you do about changes made outside of your class for example, I have a line monitoring program:...
    See more | Go to post

  • Simple sliding div animation accepts interrupt in every browser but Firefox. Why?

    I created a sliding div animation that is toggled by clicking a link. The div starts in a hidden state, and slides slowly open the first time the link is clicked. The second click hides the div immediately. This simple animation toggles between these two states.

    In every browser I have tested (IE 6-8, Safari, Chrome), the animation can be interrupted as it opens by clicking on the toggle link. In other words, the command to hide the...
    See more | Go to post

  • How to pass multiple parameters to a parameterized thread?

    I want to use threading in my application.
    This is the method which i need to call using a thread.

    Code:
    public static string ComputeHash(string text, string salt){...}
    how to call this method using a thread?
    I tried using parameterized thread but ParameterizedTh read class is not allowing to pass more than one parameter at a time.
    See more | Go to post

  • Sidra Nisar
    started a topic How to close a thread

    How to close a thread

    Hi.
    In my program, I'm initiating a thread in (console application) by getting a signal from my client(windowsf orm)who hits a connect button and it works the way i want.....
    Now i am trying to close this thread when my client clicks on the disconnect button but i'm unable to find a way.

    Kindly suggest what should be done to close the thread and terminate the form.

    Here is the code I tried

    Code:
    
    
    ...
    See more | Go to post

  • twisterplus
    started a topic C# Forms and Threading

    C# Forms and Threading

    I have developed a multi form application in C#!
    I do not start them in different threads. I simply create new forms like this:

    Code:
    this.Form= new Form1();
    this.Form.Show();
    How ever these forms act like they run in two different threads! They are both active and can perform actions!
    I have checked my task manager. No matter how many forms I start, the number of threads is still the same!...
    See more | Go to post

  • kpotdar
    started a topic Run a Long running Report.

    Run a Long running Report.

    I have a scenario where on my page(reports.as px) I submit a report request to a class(ReportWri tter.cs) in a web app. The class in turn uses a webservice to submit this job to the DB(Oracle 10g). The service returns me only the JobID. The class then uses the JobId and polls on a DB table(Jobs_Queu e) to check if this job is completed or not. If it is completed, it returns a path where the pdf is saved to the calling page. The calling page then uses...
    See more | Go to post

  • benseb
    started a topic Why threading doesn't seem concurrent

    Why threading doesn't seem concurrent

    Hi

    I'm pretty new to threading so apologies if I've not understood correctly. I'm trying to create a thread which will run a background Merge Replication sync on a windows mobile device. I need this to run in the background, doing the sync every few minutes but not holding up the main program in the process.

    so, here's the code I've created just to test the principle:

    Code:
    static void ThreadMethod()
    ...
    See more | Go to post

  • Displaying progressbar using threading in win 32 applicaition!

    In my application I have a simple module were I will read files for some process that will take
    few seconds..so I thought of displaying a progress bar(using worker thread) while the files are in progress.I have created a thread (code shown below) and also I designed a dialog window with progress control.I used the function MyThreadFunctio n below to display the progressbar but it just shows only one time and disappears,I am not sure how to make...
    See more | Go to post

  • Send timeout message to parent thread without terminating parent thread

    I'm trying to setup a mechanism to read input from a source, but time out after 10 seconds of inactivity from that source. After the mechanism times out, I want to run some end processing on the input.

    I have 2 classes:
    1. Main thread.
    2. Timer class.

    Currently, the timer class times out like so:
    Code:
    public void timeout()
    {
    	System.err.println ("Output finished. terminating");
    ...
    See more | Go to post

  • what is multi proccessing in apache server and threading ?

    what is multi proccessing in apache server and threading ?
    anybody tell i want to learn about apache server and also tell me how it handles the request ?
    See more | Go to post

  • hussain3047
    started a topic C sharp Thread need help...!!

    C sharp Thread need help...!!

    Hi i am a beginner in C sharp and trying to develop a wince 5.0 device application using C sharp.

    i am using a thread in the Form1 Load method which is continously running a method named main_program

    the problem is when i try to display any text on the textbox it shows the
    exception message as follows.

    Control.Invoke must be used to interact with controls created on a seperate
    thread.
    ...
    See more | Go to post
    Last edited by tlhintoq; Sep 25 '09, 01:41 PM. Reason: [CODE] ... Your code here ... [/CODE] tags added

  • prabunewindia
    started a topic MultiThreading is not working in server
    in IIS

    MultiThreading is not working in server

    Hi,

    I developed a web application, which is having multi thread function.

    Its working fine in the local and in the test server.

    but when its moved to live, Threading is not working.

    I am using C#, ASP.net.

    ISS 6.0.

    Please guide me to solve this.

    Rajendra Prabu Elias.
    See more | Go to post
Working...