Threadbuild problems

BlitzMax Forums/BlitzMax Beginners Area/Threadbuild problems

JBR(Posted 2009) [#1]
I've done the svn to c:/blitzmax and compiled the modules.

Everthing works fine but in 'Threaded Build' mode it don't work.

I get Can't find interface for module 'brl.blitz'

I've tried using the command line to build the modules in threaded mode but it doesnot do anything.

Maybe it is my PATH environment variable for bmk - what should I set what to ?

(I have installed the normal BMax in the programfiles...)

Help
Jim


JBR(Posted 2009) [#2]
nevermind got it working.

Another Q.

I see some examples have 'Import Pub.Threads' and other don't.
What is correct for threaded apps?

Another Q.

Can I use MiniB3D in a threaded app?

Thanks
Jim


Arowx(Posted 2009) [#3]
BlitzMax by default will import all frameworks unless you specify a Framework and imports.

There is a free framework assitant tool that helps identify needed imports from your code, which is handy for reducing application size.

I should imageine that MinB3D uses the same rendering subsystem as standard BlitzMax so the only issue there will be with threading and graphics, I don't think you will want seperate threads drawing to the screen or moving 3d objects about directly!


xlsior(Posted 2009) [#4]
You also need to make sure to recompile the modules in threaded mode:
It will compile a second copy of the modules with the alternate garbage collector that's required for the program to function in threaded mode.

IIRC it's:
bmk makemods -a -h

(-a to recompile all modules, only needed the first time)


JBR(Posted 2009) [#5]
ok, i have the MaxIDE set up for both normal & threaded.

If I used MiniB3D I have to use 'import sidesign.minib3d' for it to work.

Is there a description that tells what is 'loaded' automatically & what needs an 'import ...'

Is there a brief overview of how Max does it?

A pointer in the right direction would be appreciated.

Thanks
Jim


xlsior(Posted 2009) [#6]
Everything under brl.* and pub.* gets imported by default, nothing else does.

I strongly recommend downloading Framework Assistant -- It will analyze your program, and give you a list of all the modules it uses.

That way it also allows you to leave out all the ones pub.* and brl.* modules that you don't use as well, decreasing the size of your executables. Free download,here:
http://cid-ab6d93c02292c6c4.skydrive.live.com/browse.aspx/Framework%20Assistant