Search found 43 matches

by Iria
Tue Mar 09, 2004 9:53 pm
Forum: TailBite
Topic: TailBite 1.0 Preview, soon in PureProject and PureArea
Replies: 586
Views: 228183

Thanks

That cleared up a lot of points :) thanks again and good luck with the CGI libs ! :)
by Iria
Tue Mar 09, 2004 6:19 pm
Forum: TailBite
Topic: TailBite 1.0 Preview, soon in PureProject and PureArea
Replies: 586
Views: 228183

Documentation? Help?

Hi,

Just wondered if any documentation was in the pipeline for TailBite?

Specifically the rules arounds lib construction, for example:

1) Where do I declare variables, inside the procedures outside?
2) Where do I do declares, strucutrues, enumerations
3) I guess a tutorial would sort most of ...
by Iria
Thu Mar 04, 2004 2:59 pm
Forum: Announcement
Topic: Tool to import static librarys into PB
Replies: 36
Views: 13852

Cheers

Thanks for the reply :)

More importantly thanks for the tool :) WHOOP!
by Iria
Thu Mar 04, 2004 12:35 am
Forum: Coding Questions
Topic: Linux question
Replies: 3
Views: 1582

Hmm from experience....

Hi, you can produce usable programs using the linux version, a significant number of the commands supported under windows is supported under linux. Naturally windows API code would not work under linux.

However the linux version is not as stable as the windows version. There are a number of bugs ...
by Iria
Wed Mar 03, 2004 8:06 pm
Forum: Announcement
Topic: Tool to import static librarys into PB
Replies: 36
Views: 13852

Hmm..

Hiya,

First off can someone tell me if Im correct in thinking:

My understanding of a static library, is a library that is built statically so that programs that use functions within the library, when being linked pull the object code from the static library into the executable program.

This makes ...
by Iria
Fri Feb 27, 2004 8:53 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

Looks interesting

Hi,

Looks interesting, you need to provide some simple example usage code for people to understand the basic usage of your proposed library.

You will get more feedback if you do :)

IRIA
by Iria
Thu Feb 26, 2004 11:43 pm
Forum: Announcement
Topic: ScriptVM, a script language
Replies: 77
Views: 26602

Download link seems broken...

Tried the link...no joy, dont know if its me or more widespread.

IRIA
by Iria
Wed Feb 25, 2004 10:36 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

Hmm tried to use the PB network commands...

PB network commands appear to be very flakey when tyring to run from within a thread...still have a few ideas to try but dont hold out hope on them!.

Meanwhile I did find that some OS API calls are thread safe and will happily work for network connections. Ive modified my example to use some ...
by Iria
Wed Feb 25, 2004 4:23 pm
Forum: Announcement
Topic: Code PBLibs in PB
Replies: 213
Views: 55585

Nice work El_Choni

First up, nice work on the old Tailbite 8)

As for naming conventions, before you know it we'll be using namespace conventions :)

purebasic.tailbite.iria.libx.linux.say.hello.function

:lol:

Seriously though it would be nice for some such explicit namespace definitions in PB :)

Ill keep ...
by Iria
Wed Feb 25, 2004 4:14 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

Code improvements

As you've probably guesses I like to play about with this stuff.

Here is my vastly simplified and hopefully significantly improved version of my previous example.

Ive taken the time to think this one through and I believe it would be a reasonable place to start if you wish to schedule background ...
by Iria
Tue Feb 24, 2004 8:13 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

Beware

Yes sorry the key variables are # constants nr the top of the code. That just the way I do things.

PLEASE NOTE:

Just beware, the code I've shown you here is STILL FLAWED and will never be absolutely safe until PB becomes thread safe. Remember if you set the threadpool and the tasks to be say 200 ...
by Iria
Tue Feb 24, 2004 3:29 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

OK looked at my code again and spotted a bug!

Yeh spotted some nasty bugs, firstly the PB debuger is the least thread safe debugger I know :) no offence intended!

Best to take all the debug statements out. Second of all I spotted a nasty bug in my code which Ive corrected.

Ive changed the code to show a more graphical and human friendly ...
by Iria
Tue Feb 24, 2004 1:30 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

just noticed why your program dies suddenly

Just noticed your program has an END statement at the end.

eek! :?

This means your program starts your threads, and immediately the parent thread is killed with the END statement. That kills the child threads.

Try this modified :D version of my code and see what I mean, NOTE no END ...
by Iria
Tue Feb 24, 2004 12:40 pm
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

Try this for some ideas

OK had a think about this and knocked this code up...Ive not checked for race conditions or non thread safe data corruption, although Im pretty sure my array of unique data slots should avoid the issue...Be nice to see if it works init :)



#TotalTasks = 25 ; total number of tasks to action ...
by Iria
Tue Feb 24, 2004 10:42 am
Forum: Coding Questions
Topic: Threads - whats wrong?
Replies: 25
Views: 7409

COMMENT: Also, I only caught 4 finishing..


For x = 1 To numthreads ; running....


Change this to:


For x = 0 To numthreads


Remember arrays begin at 0 not 1

If you add a delay to the end of your program (just before the End) for say 10000 ms you will see all your processes finish. What ...