Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Graeme Geldenhuys
On 2014-04-27 11:13, Marco van de Voort wrote:
> 
> (If you attend Fosdem occasionally, I often find myself at X.org lectures

Umm, I'll have to make a plan.


> when I have no other lecture to go to. Keith Packard also often has
> lectures there)

I have read so many of Keith's published papers. They are always good
and very interesting.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Brian
An interesting discussion at this link on the subject.

http://networkedblogs.com/axUUw


 *Effectively, the beginning of the main() function is the only really safe
place to call XInitThreads(). *



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Xlib-Threads-tp5719066p5719079.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread fredvs
>> Just a guess here, but what command did you use to "run" the `main class`?

Yep, Ewald, you get it (and me too) :-)

It seems that, indeed, i used the wrong run-parameter.

And guess what... IT WORKS.

Ok, Java is now completely in the basket of fpc libraries.
Time to present to the lucky Java people some wonderful fpc Java native
libraries.
And with the wrapper class included, ready to use, s'il vous plait.

Many thanks to Stephano and Ewald.

PS : ASAP, i will update the fpc wiki...



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Create-and-use-a-wrapper-class-in-java-tp5719072p5719078.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread fredvs
>> Something like `java test` of rather `java TheWrapper`?

I did first compile both class with* javac test *and *javac TheWrapper.* =>
ok, both compile without error...
Then i run *java test* and get the error message...

>> try to get the wrapper class working with something that simply prints
>> something to stdout (System.Out.println()

Hum, it is exactly what i try to do (for giving to fpc-wiki, with some
println("Hello world")...)



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Create-and-use-a-wrapper-class-in-java-tp5719072p5719077.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread Ewald

On 27 Apr 2014, at 23:40, fredvs wrote:

> Hello Stephano.
> 
>>> Did you put each class in a separate file? 
> 
> Yes, of course, it is the goal :
> => a separate wrapper class (TheWrapper.java), with all the methods defined
> to use the library,
> => and the main class (test.java) who uses that wrapper class.
> 
> So, the same wrapper class way be used by other main class...
> 
> But impossible to find how to do that... ;-( 

Just a guess here, but what command did you use to "run" the `main class`? 
Something like `java test` of rather `java TheWrapper`? From the message you 
get it seems to me you ran the latter. If true then try the former. Finally, 
instead of immediately going for the JNI approach, try to get the wrapper class 
working with something that simply prints something to stdout 
(System.Out.println() if I'm not mistaking?). Your chances of getting help with 
some extremely simple bit of java code are a lot better that case IMHO.

--
Ewald

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread fredvs
Hello Stephano.

>> Did you put each class in a separate file? 

Yes, of course, it is the goal :
=> a separate wrapper class (TheWrapper.java), with all the methods defined
to use the library,
=> and the main class (test.java) who uses that wrapper class.

So, the same wrapper class way be used by other main class...

But impossible to find how to do that... ;-( 





-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Create-and-use-a-wrapper-class-in-java-tp5719072p5719075.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread patspiper

On 27/04/14 16:06, fredvs wrote:

Hello wonderful fpc people.

Hum, i want to create a Java wrapper class to access some fpc Java native
libraries.
I have already asked it everywhere, looking in all Java doc, but... without
luck.

Here the unique answer i get (from codeguru.com)

=>
http://forums.codeguru.com/showthread.php?544463-Create-and-use-a-wrapper-class-in-java&p=2151435#post2151435

But that answer is not working (see my last post in codeguru.com).

How to do it or where to search help (and get a working example) ?


It seems java thinks your main is in TheWrapper class. Did you put each 
class in a separate file?


Stephano
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Brian
Yes , Xlib has many impressive features , but it is lacking in a simple (and
fast) way to independently write to specific bit planes without altering the
other bit planes for 2D animation. OpenGL can be used (I think) for 2D
automation using the z-buffer , but it really is and end around to a
deficiency in Xlib.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Xlib-Threads-tp5719066p5719073.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Create and use a wrapper class in java

2014-04-27 Thread fredvs
Hello wonderful fpc people.

Hum, i want to create a Java wrapper class to access some fpc Java native
libraries.
I have already asked it everywhere, looking in all Java doc, but... without
luck.

Here the unique answer i get (from codeguru.com)

=>
http://forums.codeguru.com/showthread.php?544463-Create-and-use-a-wrapper-class-in-java&p=2151435#post2151435

But that answer is not working (see my last post in codeguru.com).

How to do it or where to search help (and get a working example) ?

Many thanks.

Fred



-
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Create-and-use-a-wrapper-class-in-java-tp5719072.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
> And it just surprises me what features Xlib / X11 has - yet everybody
> seems so eager to replace it with something else (often with something
> less feature rich, yet tick the "cool" box). Sure X11 could do with some
> modernization, but I still think it is damn impressive - considering how
> long ago it was created. Software engineers from that time-frame were
> pretty impressive.

(If you attend Fosdem occasionally, I often find myself at X.org lectures
when I have no other lecture to go to. Keith Packard also often has
lectures there)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Mark Morgan Lloyd

Graeme Geldenhuys wrote:

On 2014-04-26 20:53, Mark Morgan Lloyd wrote:
Interesting. I suppose that could lead us back to which widgetsets 
support full multithreading.


And it just surprises me what features Xlib / X11 has - yet everybody
seems so eager to replace it with something else (often with something
less feature rich, yet tick the "cool" box). Sure X11 could do with some
modernization, but I still think it is damn impressive - considering how


The principal problems seem to be related to the number of apps which 
demand a high-bandwidth link to the video, with even web browsers (as 
distinct from embedded video content) now expecting OpenGL.



long ago it was created. Software engineers from that time-frame were
pretty impressive.


Not software engineers in the general case, but MIT engineers and the 
Boston/Cambridge culture (with a nod to Bell Labs in New Jersey).


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Xlib Threads

2014-04-27 Thread Graeme Geldenhuys
On 2014-04-26 20:53, Mark Morgan Lloyd wrote:
> Interesting. I suppose that could lead us back to which widgetsets 
> support full multithreading.


And it just surprises me what features Xlib / X11 has - yet everybody
seems so eager to replace it with something else (often with something
less feature rich, yet tick the "cool" box). Sure X11 could do with some
modernization, but I still think it is damn impressive - considering how
long ago it was created. Software engineers from that time-frame were
pretty impressive.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal