All Questions
9 questions
1
vote
0
answers
330
views
C# Form in IronPython's thread. Which thread it runs on?
I'm creating an IronPython application that uses Windows Form as a user interface. The form is built in a Dll and I create a separate thread to run this form using static methods of Application class. ...
2
votes
2
answers
841
views
IronPython as Scripting language to C# WPF VS 2015
I'm having some trouble that I hope you can help with! I've being trying to update this grid.Width parameter in a while loop, in a sleep(500) step. But, when I hit run script on my program, the entire ...
0
votes
1
answer
1k
views
C# thread running python script
I have several python scripts and would like to run them using .net thread pool, each thread running a python script (I have .net doing lot other stuff for me and towards the end needs to call this ...
10
votes
1
answer
439
views
IronPython throw InsufficientMemoryException when using numpy in threads
I have some IronPython code that being called from within a C# application.
This code worked fine until I decided to change one function to run in a thread.
when numpy functions called in a python ...
2
votes
1
answer
2k
views
IronPython / C# I can't reopen a serial port after Script has been run
The program "Mission Planner" allows python scripts to be ran in order to customize the behavior of the program. The "Mission Planner" runs the script in its own thread. When the thread is running I ...
0
votes
2
answers
265
views
Starting new theard from another thread and abort it C#
if i do somtheing like this:
new Thread(DoWork).Start();
void DoWork(){new Thread(DoMoreWork).Start();}
and i aborting the first thread that run DoWork is DoMoreWork also will aborted?
if not how ...
10
votes
2
answers
33k
views
What is a safe way to stop a running thread?
I have a thread which contains execution of an IronPython script. For some reason I may need to stop this thread at any time, including script execution. How to achieve this? The first idea is Thread....
4
votes
1
answer
2k
views
How to execute IronPython script in separate thread and then suspend it?
Lets assume I have such code for testing.
public class SimpleScheduler
{
public Script Script { get; set; }
private Thread _worker;
public void Schedule()
{
this._worker = ...
1
vote
1
answer
1k
views
C# Running IronPython On Multiple Threads
I have a WPF app that controls audio hardware. It uses the same PythonEngine on multiple threads. This causes strange errors I see from time to time where the PythonEngines Globals dictionary has ...