Search found 6 matches

by Hugo
Fri Jan 11, 2013 2:13 pm
Forum: Coding Questions
Topic: OnError library in threaded program
Replies: 10
Views: 2376

Re: OnError library in threaded program

Hi,

any news about this?

I have the same problem to find the relevant line in my code in a threaded program. If the OnError lib will be unusable for this what else can I do to find the programline?

Hugo
by Hugo
Wed Oct 31, 2007 7:26 am
Forum: Coding Questions
Topic: Usage of 2D drawing library in a thread.
Replies: 10
Views: 4116

Thank you for the great explanation. Now I know how to generate a usable workaround.
by Hugo
Tue Oct 30, 2007 12:19 pm
Forum: Coding Questions
Topic: Usage of 2D drawing library in a thread.
Replies: 10
Views: 4116

Yes, I agree that threading is always a problem. But I thought that PureBasic with the 'Threadsave' option should avoid such problems.

On my system the removing off the delay does not solve the problem. When I test it, sometimes it runs for minutes and it looks ok. But after a while it crashes ...
by Hugo
Tue Oct 30, 2007 8:55 am
Forum: Coding Questions
Topic: Usage of 2D drawing library in a thread.
Replies: 10
Views: 4116

Usage of 2D drawing library in a thread.

Hi,

I have a problem in my current project.

The task is to collect and display data in realtime. The collection and display of the data must be not interruptable when the user interacts with the program. So I can not do this in the main loop but in a separate thread.

To display the data I must ...
by Hugo
Fri Apr 07, 2006 12:36 pm
Forum: Coding Questions
Topic: ImageOutput in threads
Replies: 5
Views: 1351

Ok, if this is the case, how can I initialize the image in the thread so I can access it form both the main program and the thread?

One other point here is that IsImage(#Image3) gives true back in the tread.
by Hugo
Fri Apr 07, 2006 7:32 am
Forum: Coding Questions
Topic: ImageOutput in threads
Replies: 5
Views: 1351

ImageOutput in threads

If I use StartDrawing(ImageOutput(#Image3)) in a tread and 'create threadsave executable' is activated, the debugger shows the error message: The specified output is NULL.

The reason for this is that ImageOutput(#Image3) returns 0.

It works without any problems when I disable 'create threadsave ...