15 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for ppel123

Hello everyone, I have a problem with my app when closing the gui-UI, that is developed in PyQt5. In my app I have 3 discrete threads and one of it using slot-signals for communicating with the gui. The problem I have is that when I close the gui, and the …

0
640
Member Avatar for getnit

I am trying to establish a pause and play communication between threads.I am spawning two threads for two forms at the startup, one is the mainthread which is for mainwindow and second thread of form2, var thread = new Thread(ThreadStart); thread.TrySetApartmentState(ApartmentState.STA); thread.Start(); private static void ThreadStart() { Application.Run(new SecondForm()); // …

0
135
Member Avatar for david56connor

Hi there, I have a piece of code that I made to handle the joining of 'characters' in to a 'raid' on a game. The program refreshes a page to check if the 'raid' is available, if it is, it 'forms' the raid and 'joins' the characters. The joining process …

0
135
Member Avatar for denizen08

I have a project that requires us to perform matrix multiplication via multi-threading, using the Windows API. I've got the basic code running and everything is well under sane/ideal conditions. But if my input matrices go beyond 10x10 the program ends up failing on WaitOnMultipleObjects(...) and runs the main thread …

0
118
Member Avatar for smith32

I'm trying to do the third writer/reader problem with semaphore (as mention on wiki). But it's not working properly. First 16-element array seem to work properly. But after first, it got wrong. Even though I think I'm almost there, I can't find the error at all. My code is as …

0
142
Member Avatar for smith32

I don't get it why my threads can't perform properly for writer/reader problem. I think something with the semaphore. but can't solve and online can't help me too. [CODE] semaphore mutex, read, write; void *reader(void *argv) { char buffer[200]; int readNo, i=0; do { sem_wait(&read); sem_wait(&mutex); sem_getvalue(&read, &readNo); fgets(buffer, sizeof(buffer), …

0
96
Member Avatar for divin757

Hi, I have a custom httphandler (HttpUploadHandler.ashx) which is used for handling requests from a file uploader. It collects all the files from a client then fires a thread to do some processing on the files. When large amounts of files are added it will throw 'Thread was being aborted' …

0
122
Member Avatar for virtue

Hi, I wanna traverse inside the file system by using threads and processes.My program has to assume the first parameter is either given as "-p" which offers a multi-process application or "-t" which runs in a multi-threaded way. The second parameter is the pathname of a file or directory. If …

1
142
Member Avatar for Hassan_w

hello everybody.. recently I'm doing attendance software connected multiple RFID devices, the device doesn't support seeking new input automatically, so I need to implement the loop to seek next card automatically, the read function takes 3 parameters. I did read from each devices but separately. I need to read from …

0
99
Member Avatar for mikesowerbutts

Hi, I have some code which creates a PDF based on the data posted to the entry point page (print.aspx). When I run a page with multiple frames in, each accessing the main print.aspx and posting data etc. but for some reason each frame loads one at a time, rather …

0
141
Member Avatar for thecreators

Hi all, I am new to threading. I am trying to send HTTP Web Request using multi threading, I am not able to acheive what I need. My requirement is to send request to thousands of same or different websites and parse the response i get it from httpwebrequest. In …

0
79
Member Avatar for swinefish

Hello all I'm having a major problem with instantiating objects across threads in WPF. For example, if I have the following: [icode]Line l = new Line[/icode] I get the following error: 'InvalidOperationException: The calling thread must be STA, because many UI components require this.' While I understand that in general, …

0
96
Member Avatar for pymatio

Hi everybody, I'm trying to make a program that goes through a directory and checks for broken links. Unfortunately it isn't working: [CODE] // Main.cs using System; using System.Collections.Generic; using Gtk; namespace LinkMonkey { class MainClass { public static void Main (string[] args) { bool cli = true; bool recursive …

0
53
Member Avatar for nitin2010

In my program ,am using ThreadPool for threading. In which function creating progressbar is in one thread and function that changing visibility of progressbar is in another thread. then following exception occurring... [COLOR="Red"]Controls created on one thread cannot be parented to a control on a different thread[/COLOR]

0
66
Member Avatar for amit.hak50

Create 2 Thread classes.One Thread is Incrementor and has one variable cnt1 with initial Value 0. Incrementor thread increments value of cnt1 by 1 each time. The other thread is Decrementor which has variable cnt2 with initial value 100. Decrementor thread decrements value of cnt2 by 1 each time. - …

0
73

The End.