Hi Benoit,

I'm currently working on a new viewer for reports. As drawing report in
real time is quite long, I use images stored in a collection to have a
buffer.

I have trying to use task to process the painting of the report on an image
that I return through the value, like you are doing in fractal example.

So in the _new I'm giving theses args :

(Hreport as report, ipage as integer, fscale, iwidth, iheight)

Then the main sub call $hreport.paint($ipage) to draw the page

But a this point report class return an I/O error... Why ?

Can't I use a class instantiate in the main processus in the slave one ?

In other hand, is there a way to re-use a task class after the return
without instanciate it a new time, and if it's possible, how to run it with
new args.

Fabien
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to