Re: [Gambas-user] Rpi

2015-02-03 Thread CJ

> So who has ordered there pi 2. I have.

Read the news yesterday. Unfortunately I've had very limited time over
for RPi as well as Gambas so let us all know how it works out for you.

/CJ



--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Dropbox Uploader

2015-02-06 Thread CJ

Just wanted to share this neat script that uses curl for uploading
or downloading files/directories from CLI and/or Gambas.

  http://www.andreafabrizi.it/?dropbox_uploader

Takes a few minutes to set up, here is a guide...

  http://xmodulo.com/access-dropbox-command-line-linux.html

/CJ



--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Rpi

2015-02-09 Thread CJ
@Antonio:

Good compariosn link. Have you tried the Odroid C1 with Gambas? I mean
are there C libs for accessing I/O ports etc.

What I really like with Odroid is the built-in RTC as well as a couple
of ADC inputs.

> Are you sure it's an advantage to install windows 10?
> on anything ???

I think MS is feeling the heat from Linux and are trying to stop/slow
down the spread and thus giving away Windows 10 for RasPi as well as
the Desktop (1st year). Competition is good for us as consumers ;)

I gonna try it but my guess it's similar to the OS used in Windows 8
phones so I can't see any immediate benefits for me personally.

/CJ


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Invoking interpreter from complied program

2015-02-11 Thread CJ

> Is it possible for a compiled program to read instructions
> from a text file?
> I'm trying to write a program that can have functions added
> without needing to recompile the base program.

I've been using the following to execute Gambas script and passing data via
arguments
to the script, then catched the output of the script in a variable.

  Shell "/path/to/script.gbs arg1 arg2" To variable

Don't know if this is the best way but it works but I'm interested to learn
about
other/better ways to do it...

/CJ



--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Tutorial on native component development

2015-03-06 Thread CJ
Hi Tobi,

> If anything the article gives a brief and rather incomplete
> introduction to the process but since component programming is difficult
> and the interpreter is rich on structure but hardly documented, I
> don't see any facette to improve upon. It's a learning by doing (and
reading) thing.
>
> Regards,
> Tobi
>
> [0] http://www-e.uni-magdeburg.de/tboege/gambas
>
> --

Great work and thanks for sharing it with the rest of us. Reading
mode ON...

/CJ



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Extern library libftd2xx

2015-03-11 Thread CJ
Hi Ivan,

> does anyone have an example of external library
> libftd2xx?  I can't get data from the USB device.

If you find something please share with the list. I'm also
interested in the topic.

/CJ


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-21 Thread CJ

> Yeah, just read the log:
> 
> Unable to met pkg-config requirement: gmime-2.6
> Unable to met pkg-config requirement: gmime-2.4

Thanks, missed that part!

Will try to install libgmime-2.x-dev and recompile!

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-21 Thread CJ
Hi Kendek,

> I have successfully compiled local Debian packages. I installed them,
> and at first glance, everything looks fine.
> So I uploaded this update into the PPA, so people will be able to test
> the functional operation.

Just wanted to say thanks for your efforts! I'm still on Natty Narwhal
so I can't use it this time.

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-21 Thread CJ
Hi,

> I have just uploaded the source package of Gambas 3.4.2 as a
> pre-release. It includes a lot of backported fixes from /trunk.
>
> Download it there:
>
>
http://sourceforge.net/projects/gambas/files/gambas3/gambas3-3.4.2.tar.bz2/d
ownload
>
>Here is the list of backported revisions:
>
>r5612, r5613, r5614, r5615, r5616, r5623, r5630, r5631, r5632, r5633,
>r5637, r5638, r5644, r5653, r5657, r5682, r5683, r5686, r5689, r5706,
>r5707, r5708, r5709, r5713, r5714, r5720, r5724, r5728, r5735, r5738,
>r5739, r5740.
>
>Please test it and report any problem, especially if you expected some
>important fixes (like the XML-RPC server ones) !!
>
>The official release will follow, as soon as I get enough positive
feedback.

Just an update...

After adding the missing MIME library Gambas3 3.4.2 compiled OK on Xubunt
11.04
including the POP3 component, also compiled OK on Raspberry Pi running
Debian Wheezy.

Finally catching up to a more recent version than 3.3.4 ;) Thanks again and
kudos
to everyone involved!

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-23 Thread CJ

> Ok, but Debian Lenny? Anyone using it yet? The security support has
> long since ended.
>
> http://lists.debian.org/debian-announce/2012/msg1.html

Yes, there are people still using it me included ;)

I'm running Debian 5.03 Lenny on my NAS and will for a long time since I'm
not able to upgrade. Have Gambas3 3.4.2 pre runtime + a few selected
components
working fine after manually upgrading a couple of the Debian packages.

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-23 Thread CJ

> NAS, ok. But you really need the latest version of Gambas? Normally, a
> desktop computer that uses legacy operating system, why do you want to
> use fresh Gambas? This would also be a general phenomenon? I do not
> understand the logic.

For me it's primarily three things...

1. Bug fixes (and to some extent new features).

2. Consistency to minimize issues between different versions on
   different hardware (PC, NAS, Raspberry Pi, BeagleBone etc)

3. Having the same version of Gambas3 as on my desktop since I
   don't develop on the NAS but do that on the desktop.

> I only support officially supported Debian releases.

I understand that you have to draw the line somewhere I just
answered your question if Lenny was still being used ;)

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pre-release of Gambas 3.4.2

2013-07-23 Thread CJ

> I understand that. But PC -> Squezze or Wheezy, Raspberry Pi
> -> Squeeze or Wheezy, NAS why Lenny?
> Why ancient people use Lenny packages, but they need the fresh
> packages? It is meaningless to me. This is not Windows, just upgrade
> the system.

Sometimes thats not as easy as upgrading a PC. In my particular NAS case
I don't have the required bits & pieces to upgrade the kernel and newer
distributions requires that.

I'm sure there is some way to do it but that requires time and since
the NAS performs it's expected duites (and more thanks to Gambas3)
flawlessly
and time is limited I'm still using Lenny on that one.

Also I'm a firm beliver in "if it ain't broken don't fix it" ;)

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Receiving an email

2013-07-23 Thread CJ
Hi Rolf,

> Just wanted to try, but I don't find gb.net.pop3 - where is it? Is it 
> something quite new? My version here is 3.3.4.
> 
> I tried to activate the gb.net, gb.net.curl and gb.net.smtp 
> components, 
> but it still doesn't know about Pop3Client. What am I doing wrong?

I can't say exact what version needed for having the POP3 component
but it sounds like you need to either recompile or update to get it.

Did you compile 3.3.4 from source? I had a similar issue where gb.net.pop3
was skipped due to a missing MIME library (libgmime-2.4-dev in my case).

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Receiving an email

2013-07-25 Thread CJ

> Just looked it up, libgmime 2.4 is there on my system, but 
> not the -dev version, it isn't offered at all.

What Linux distribution, version etc. are you using?

/CJ


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Receiving an email

2013-07-26 Thread CJ

> It's OpenSuse 12.1

I have no experience with OpenSuse at all since I'm a Debian guy but
I did a quick search and it seems that it's called "gmime-2_4-devel"
instead of "libgmime-2.4-dev".

Check for that or maybe you can use this one???

  http://rpmfind.net/linux/RPM/opensuse/11.4/i586/gmime-2_4-devel-2.4.21-3.2
.i586.html

/CJ


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Receiving an email

2013-07-26 Thread CJ

> Ok, since my internet is ok this evening, I downloaded 3.4.1 and 
> compiled it. With ./reconf-all, ./configure and make, there's 
> no problem 
> as far as I could see. The very last message when installing 
> with "make 
> install" is
> 
> Unable to compile gb.net.pop3
> 
> Then it's finished.
> 
> Some lines above, I found
> 
> Compiling gb.net.pop3...
> gbc: error: Component not found: gb.mime
> 
> The gb.mime directory is there, so where's the trick?

gb.net.pop3 depends on the gb.mime component (not directory) and if
you don't have the libgmime-2.4-dev package I assume gb.mime fails first,
search logfile and see if gb.mime component was compiled OK.

/CJ



--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas hall of fame

2013-10-23 Thread CJ

> The Gambas Hall Of Fame is not really up to date.
> 
> I'd like to make something with photographs of each people 
> involved in  Gambas: developers, main translators, web site / forum 
> maintainers... I think it will give a more "friendly" or "human"
> image of the software.
> 
> Do you think it's a good idea?

Would love to learn more about the individuals in the Gambas development
team, a photo would be a bonus but not mandatory IMO.

/CJ



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.5.2

2014-01-12 Thread CJ

> Gambas 3.5.2 has been released, with 67 bug fixes backported from the 
> development version.

Altho I'm heavily backlogged with 1200+ unread messages this caught my
eye and I just wants to say thank you to everyone in the Gambas team
for you hard work and dedication!

Looking forward to test 3.5.2 when a free timeslot arrives...

Seasons Greetings!

/CJ


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Test - please ignore!

2014-06-18 Thread CJ
Have problems sending to the list...

/CJ


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.net.curl and SSL certificate

2014-06-18 Thread CJ

Trying to communicate with a web server via https and the HTTPGet example
but the
connection fails with error -1060 also if I disable certificate
authentication using...

  MyHTTP.SSL.VerifyHost = False
  MyHTTP.SSL.VerifyPeer = False

Found an old discussion about this issue where Jim couldn't get it to work
but thread
ends there...

http://sourceforge.net/p/gambas/mailman/message/31259267/

Using the debug option I get the following back (IP# and host names
removed)...

  * About to connect() to xxx..com port 443 (#0)
  *   Trying 194.XX.XXX.XX... * Connected to xxx..com (194.XX.XXX.XX)
port 443 (#0)
  * successfully set certificate verify locations:
  *   CAfile: none
  CApath: /etc/ssl/certs
  * SSL certificate problem, verify that the CA cert is OK. Details:
  error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed
  * Closing connection #0

If I use the curl command line tool with the "--insecure option" it works as
intended
and I get data back from the server. Reading the libcurl doc's I see there
is a option
to disable it as follows and wonder if this is what "MyHTTP.SSL.VerifyPeer =
False" do?

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);

Source: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html


[System]
Gambas=3.5.3
OperatingSystem=Linux
Kernel=3.2.0-24-generic-pae
Architecture=x86
Distribution=Ubuntu 12.04 LTS
Desktop=GNOME
Theme=QGtk
Language=en_US.UTF-8
Memory=496M
[Libraries]
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.1.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3

/CJ



--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.net.curl and SSL certificate

2014-06-19 Thread CJ

> > Trying to communicate with a web server via https and the HTTPGet
example
> > but the connection fails with error -1060 also if I disable certificate
> > authentication using...
> >
> >MyHTTP.SSL.VerifyHost = False
> >MyHTTP.SSL.VerifyPeer = False
> >
>
> ".VerifyPeer = False" is really just a call to:
>
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
>
> So I don't know why it does not work.
>
> I would need an "https" URL to test...

Thanks for clarifying Benoît!

Since I don't want to make the server address public would it be possible
for
me to send you a private e-mail with the https URL to test?

If, then just send me your e-mail address to my address used for this
mailing list...

/CJ



--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.net.curl and SSL certificate

2014-06-19 Thread CJ
Benoît,

> If I can see your address in the mailing-list, so you can see mine,
> can't you? mailto:gam...@users.sourceforge.net

Ahh, I thought that was a "generic" mailing list address to prevent you
from being swamped by personal requests, silly me ;)

I will pack up the example program including the https test address and
send it to you when I get back home tomorrow.

/CJ



--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.net.curl and SSL certificate

2014-06-20 Thread CJ
Hi Benoît,

> Can you try revision #6330 and tell me?

Thanks for looking into it! It works in #6330, tested on Ubuntu 12.04 LTS
and Xubuntu 14.04 LTS.

/CJ




--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas3 and ZeroMQ?

2014-06-27 Thread CJ

Anyone using ZeroMQ (a.k.a ØMQ/0MQ/zmq) with Gambas3? Looks like a nice way
doing inproc, IPC, RPC...

  http://zeromq.org

Below is a nice introduction...

  http://nichol.as/zeromq-an-introduction

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Get structure from extern function?

2014-07-03 Thread CJ
I'm trying to receive a simple structure from a shared library but
get an Type Mismatch error saying...

  "wanted StructVersion, got Function instead in FMain:87"

Before calling the extern function I declare the structure, variable
and the library using...

  Public Struct StructVersion
  Major As Byte
  Minor As Byte
  End Struct

  Public Version As StructVersion

  Extern LIBVersion() As StructVersion In "libtest"

But get the error when calling the function with...

  Version = LIBVersion

I did find an older post made by Benoît and using the code given in that
post results
in the same error (i.e "wanted StructTm, got Function instead in FMain:107")

--8<-

Public Struct StructTm
   tm_sec As Integer
   tm_min As Integer
   tm_hour As Integer
   tm_mday As Integer
   tm_mon As Integer
   tm_year As Integer
   tm_wday As Integer
   tm_yday As Integer
   tm_isdst As Integer
End Struct

Private Extern localtime(timep As Pointer) As StructTm In "libc:6"

--8<-

Source: http://permalink.gmane.org/gmane.comp.lang.gambas.user/16080

Am I missing something?


[System]
Gambas=3.5.90
OperatingSystem=Linux
Kernel=3.13.0-29-generic
Architecture=x86
Distribution=Ubuntu 14.04 LTS
Desktop=XFCE
Theme=QGtk
Language=en_US.UTF-8
Memory=1002M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.8
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-03 Thread CJ

> > I'm trying to receive a simple structure from a shared library but
> > get an Type Mismatch error saying...
> >
> >"wanted StructVersion, got Function instead in FMain:87"
> >
>
> You must put "()" after the identifier to call it as a function.

Fabien and Benoît,

Unfortunately that crashes the Gambas interpreter with a Segmentation fault
(11) message?

If you are interesting to test yourself see my previous post to this list,
it includes
library and a simple testprogram.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-04 Thread CJ

Noticed I missed a "NEW" keyword but the problem with the segmentation fault
persists.

Attached is an updated version of the simple test program calling the
libtest library.

/CJ



libtest2.tar.gz
Description: GNU Zip compressed data
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-04 Thread CJ
Hi Voutt

> I tried to use your library, but I receive this notice/error:
>
> " Cannot find dynamic library: ...etc..etc..: wrong ELF
> class: ELFCASS32 "
>
> so, because I suppose it was written for an 386 system. (Isn't it ?)

Yes, it's compiled for i386 under Xubuntu 14.04 LTS (32-bit). What Linux
dist
are you running? Is it 64-bit?

> I am not able to create a shared library from a free Pascal code.

If I know what dist you are running I maybe can install same and recompile
on that.

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-04 Thread CJ

> You would help by using "gdb" to get the stack backtrace of
> the crash.

Thats probably a better start. Attached is result from gdb running
"libtest2"...

> Or better using "valgrind" to get more details.

I have no experience with that but will install and read up on it later if
needed, let me know...

/CJ


root@VB-Xubuntu-1404:/home/christer/Documents/Gambas 3/Projects/libtest2# gdb 
gbx3
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbx3...done.
(gdb) run
Starting program: /usr/bin/gbx3 
Warning: couldn't activate thread debugging using libthread_db: Cannot find new 
threads: generic error
warning: File "/lib/i386-linux-gnu/libthread_db-1.0.so" auto-loading has been 
declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /lib/i386-linux-gnu/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread 
debugging will not be available.
9

Program received signal SIGSEGV, Segmentation fault.
0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from /usr/local/lib/libtest.so
(gdb) bt
#0  0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from 
/usr/local/lib/libtest.so
#1  0xb7dc63c6 in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
#2  0xb7dc614b in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6
#3  0x08077db3 in EXTERN_call () at gbx_extern.c:390
#4  0x0807e47c in EXEC_loop () at gbx_exec_loop.c:1221
#5  0x0805114c in EXEC_function_loop () at gbx_exec.c:931
#6  0x0805179c in EXEC_function_real () at gbx_exec.c:895
#7  0x08052444 in EXEC_public_desc (class=0x8117714, object=0x819e57c, 
desc=0x819d53c, nparam=0) at gbx_exec.c:1616
#8  0x08065cae in raise_event (observer=observer@entry=0x819e57c, 
object=object@entry=0x819e57c, func_id=153, 
func_id@entry=154, nparam=0) at gbx_api.c:893
#9  0x08067761 in GB_Raise (object=0x819e57c, event_id=21, nparam=0) at 
gbx_api.c:1029
#10 0xb721d2ef in gb_raise_window_Open (sender=0x819e610) at CWindow.cpp:70
#11 0xb71fc775 in gControl::emit (this=0x819e610, signal=0xb721d2bc 
)
at gcontrol.cpp:1910
#12 0xb720b8ee in gMainWindow::emitOpen (this=0x819e610) at gmainwindow.cpp:541
#13 0xb720bd4c in gMainWindow::setVisible (this=, vl=) at gmainwindow.cpp:574
#14 0xb720a64e in show (this=0x819e610) at gcontrol.h:169
#15 gMainWindow::showActivate (this=0x819e610) at gmainwindow.cpp:812
#16 0xb721d907 in CWINDOW_show (_param=0x0, _object=) at 
CWindow.cpp:398
#17 CFORM_main (_object=0x0, _param=0xb7251000) at CWindow.cpp:754
#18 0x08051e87 in EXEC_native () at gbx_exec.c:1366
#19 0x08052404 in EXEC_public_desc (class=0x8117714, object=0x0, 
desc=0xb724f95c , nparam=0)
at gbx_exec.c:1606
#20 0x0804b53e in main (argc=1, argv=0xb0a4) at gbx.c:416
(gdb)
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-04 Thread CJ

> Hi, this is my system

OK, I'm downloading Linux Mint 17 64-bit and will see if I can install it
and compile.

PS: I have a slow pipe so it will take a while to DL.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-04 Thread CJ

Thanks for the input Jussi!

> I don't know the language, but shouldn't "Tripple := numberin * 3" be
> "Tripple := numberin * 3;"? That would seem consistent.

Good catch! In this particular Pascal code it doesn't really matter since
it's the one
and only line of code in that function but it's now corrected for
consistency.

Maybe it was a bit unclear before but the "Tripple" function works OK and I
only included
it to verify that the lib works as intended - at least that part - it's when
calling
"LIBVersion" trying to get the struct it crashes.

> Also byte cannot hold values like 01, is just same as 1.

Correct, guess I wrote 01 just out of habit, i.e. 1.01.

Hopefully the gdb output give clues to whats happening.

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 and ZeroMQ?

2014-07-05 Thread CJ

> Seem interresting !

Yes, ZeroMQ looks usefull for lots of things. Haven't had a chance to look 
closer but
I did find some simple examples for other BASIC dialects (Win32) that may come 
in handy...

  http://www.coastrd.com/download/ZMQExamples.zip

Looks like the above examples are based on 2.2 API version and API reference is 
found
here:

  http://api.zeromq.org/2-2:_start

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-05 Thread CJ

> You would help by using "gdb" to get the stack backtrace of
> the crash.

Thats probably a better start. Attached is result from gdb running
"libtest2"...

> Or better using "valgrind" to get more details.

I have no experience with that but will install and read up on it later if
needed, let me know...

/CJ


root@VB-Xubuntu-1404:/home/christer/Documents/Gambas 3/Projects/libtest2# gdb 
gbx3
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbx3...done.
(gdb) run
Starting program: /usr/bin/gbx3 
Warning: couldn't activate thread debugging using libthread_db: Cannot find new 
threads: generic error
warning: File "/lib/i386-linux-gnu/libthread_db-1.0.so" auto-loading has been 
declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /lib/i386-linux-gnu/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread 
debugging will not be available.
9

Program received signal SIGSEGV, Segmentation fault.
0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from /usr/local/lib/libtest.so
(gdb) bt
#0  0xb5e868cb in P$TEST_LIBVERSION$$TYPE_VERSION () from 
/usr/local/lib/libtest.so
#1  0xb7dc63c6 in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
#2  0xb7dc614b in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6
#3  0x08077db3 in EXTERN_call () at gbx_extern.c:390
#4  0x0807e47c in EXEC_loop () at gbx_exec_loop.c:1221
#5  0x0805114c in EXEC_function_loop () at gbx_exec.c:931
#6  0x0805179c in EXEC_function_real () at gbx_exec.c:895
#7  0x08052444 in EXEC_public_desc (class=0x8117714, object=0x819e57c, 
desc=0x819d53c, nparam=0) at gbx_exec.c:1616
#8  0x08065cae in raise_event (observer=observer@entry=0x819e57c, 
object=object@entry=0x819e57c, func_id=153, 
func_id@entry=154, nparam=0) at gbx_api.c:893
#9  0x08067761 in GB_Raise (object=0x819e57c, event_id=21, nparam=0) at 
gbx_api.c:1029
#10 0xb721d2ef in gb_raise_window_Open (sender=0x819e610) at CWindow.cpp:70
#11 0xb71fc775 in gControl::emit (this=0x819e610, signal=0xb721d2bc 
)
at gcontrol.cpp:1910
#12 0xb720b8ee in gMainWindow::emitOpen (this=0x819e610) at gmainwindow.cpp:541
#13 0xb720bd4c in gMainWindow::setVisible (this=, vl=) at gmainwindow.cpp:574
#14 0xb720a64e in show (this=0x819e610) at gcontrol.h:169
#15 gMainWindow::showActivate (this=0x819e610) at gmainwindow.cpp:812
#16 0xb721d907 in CWINDOW_show (_param=0x0, _object=) at 
CWindow.cpp:398
#17 CFORM_main (_object=0x0, _param=0xb7251000) at CWindow.cpp:754
#18 0x08051e87 in EXEC_native () at gbx_exec.c:1366
#19 0x08052404 in EXEC_public_desc (class=0x8117714, object=0x0, 
desc=0xb724f95c , nparam=0)
at gbx_exec.c:1606
#20 0x0804b53e in main (argc=1, argv=0xb0a4) at gbx.c:416
(gdb)
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

Thanks for the input Jussi!

> I don't know the language, but shouldn't "Tripple := numberin * 3" be
> "Tripple := numberin * 3;"? That would seem consistent.

Good catch! In this particular Pascal code it doesn't really matter since
it's the one
and only line of code in that function but it's now corrected for
consistency.

Maybe it was a bit unclear before but the "Tripple" function works OK and I
only included
it to verify that the lib works as intended - at least that part - it's when
calling
"LIBVersion" trying to get the struct it crashes.

> Also byte cannot hold values like 01, is just same as 1.

Correct, guess I wrote 01 just out of habit, ie 1.01.

Hopefully the gdb output will give Benoit etc. clues to whats happening.

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

Thanks for the input Jussi!

> I don't know the language, but shouldn't "Tripple := numberin * 3" be
> "Tripple := numberin * 3;"? That would seem consistent.

Good catch! In this particular Pascal code it doesn't really matter since
it's the one
and only line of code in that function but it's now corrected for
consistency.

Maybe it was a bit unclear before but the "Tripple" function works OK and I
only included
it to verify that the lib works as intended - at least that part - it's when
calling
"LIBVersion" trying to get the struct it crashes.

> Also byte cannot hold values like 01, is just same as 1.

Correct, guess I wrote 01 just out of habit, ie 1.01.

Hopefully the gdb output will give Benoit etc. clues to whats happening.

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

Sorry if this message appears twice on the list, had issues posting again...

> Just do :
>
> Version = LIBVersion()

Hmm, that crashes the Gambas interpreter with a Segmentation fault (11)
message.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

> > I'm trying to receive a simple structure from a shared library but
> > get an Type Mismatch error saying...
> >
> >"wanted StructVersion, got Function instead in FMain:87"
> >
>
> You must put "()" after the identifier to call it as a function.

Fabian and Benoît,

Unfortunately that crashes the Gambas interpreter with a Segmentation fault
(11) message?

If you are interesting to test yourself see my previous post to this list,
it includes
library and a simple testprogram.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

> Just do :
> 
> Version = LIBVersion()

Hmm, that crashes the Gambas interpreter with a Segmentation fault (11) message.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

> Just do :
> 
> Version = LIBVersion()

Hmm, that crashes the Gambas interpreter with a Segmentation fault (11) message.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

Thanks for the input Jussi!

> I don't know the language, but shouldn't "Tripple := numberin * 3" be
> "Tripple := numberin * 3;"? That would seem consistent.

Good catch! In this particular Pascal code it doesn't really matter since
it's the one
and only line of code in that function but it's now corrected for
consistency.

Maybe it was a bit unclear before but the "Tripple" function works OK and I
only included
it to verify that the lib works as intended - at least that part - it's when
calling
"LIBVersion" trying to get the struct it crashes.

> Also byte cannot hold values like 01, is just same as 1.

Correct, guess I wrote 01 just out of habit, i.e. 1.01.

Hopefully the gdb output give clues to whats happening.

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-06 Thread CJ

> Just do :
>
> Version = LIBVersion()

Hmm, that crashes the Gambas interpreter with a Segmentation fault (11)
message.

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.5.4

2014-07-07 Thread CJ
> Gambas 3.5.4 has been officially released!
> 
> You can download it and get all the information from the 
> website as usual.
> 
> Please report any problem, and enjoy it!

Thank you for your hard work and dedication to make Gambas 3 a hell of
a Linux RAD and that goes to every Gambas team member involved!

Also want to apologise for duplicate mails to the list from me, I don't
know why I sometimes have big problems posting to this list?

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3.5.40 - Unable to compile gambas3

2014-07-09 Thread CJ

> -Original Message-
> From: Benoît Minisini [mailto:gam...@users.sourceforge.net]
> Sent: Tuesday, July 08, 2014 6:32 PM
> To: mailing list for gambas users
> Subject: Re: [Gambas-user] Gambas 3.5.40 - Unable to compile gambas3
>
>
> Le 08/07/2014 16:41, CJ a écrit :
> >
> > Tried to compile 3.5.40 from official tar-ball on Xubuntu
> 14.04 LTS but got
> > the following error at "make install" step...
> >
> >...
> >||
> >|| Unable to compile gambas3
> >||
> >...
> >
> > Looking further up in logfile it complains about
> >
> >...
> >Installing the development environment...
> >Compiling gambas3...
> >gbc: error: Component not found: gb.desktop.x11
> >...
> >
> > Any ideas?
> >
> > /CJ
> >
>
> A mistake. I have fixed the source package, you can download
> and compile it again.

Will do, thanks!

/CJ


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3.5.40 - Unable to compile gambas3

2014-07-09 Thread CJ
Just a FYI.

> A mistake. I have fixed the source package, you can download 
> and compile it again.

The new tar-ball compiled OK on Xubuntu 14.04 LTS..

[System]
Gambas=3.5.4
OperatingSystem=Linux
Kernel=3.13.0-30-generic
Architecture=x86
Distribution=Ubuntu 14.04 LTS
Desktop=XFCE
Theme=QGtk
Language=en_US.UTF-8
Memory=1002M

[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+=libgtk-x11-2.0.so.0.2400.23
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

/CJ



--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-11 Thread CJ

Attached is a new bt after updating to latest Free Pascal version 2.6.4. I
also
tested returning a simple string and that works OK just like integer.

Shared library was compiled with {$OPTIMIZATION OFF} and {$DEBUGINFO ON}
switches
and hopefully it may give some new clues? Are there any other tests I can
run that
may reveal helpfull information?

PS: Free Pascal source code included just for reference.

/CJ


...
root@VB-Xubuntu-1404:/home/christer/Documents/Gambas 3/Projects/libtest# gdb 
gbx3
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gbx3...done.
(gdb) run
Starting program: /usr/bin/gbx3 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
9

Program received signal SIGSEGV, Segmentation fault.
0xb5e8f97c in LIBVERSION (result=)
at /home/christer/Documents/Free Pascal/Projects/lib_snap/test.pas:32
32LIBVersion:=VERSION;
(gdb) bt
#0  0xb5e8f97c in LIBVERSION (result=)
at /home/christer/Documents/Free Pascal/Projects/lib_snap/test.pas:32
#1  0xb7f573c6 in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6
#2  0xb7f5714b in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6
#3  0x08077a29 in EXTERN_call () at gbx_extern.c:390
#4  0x0807d68e in EXEC_loop () at gbx_exec_loop.c:1210
#5  0x08051015 in EXEC_function_loop () at gbx_exec.c:907
#6  0x0805164e in EXEC_function_real () at gbx_exec.c:871
#7  0x080522f6 in EXEC_public_desc (class=0x81130fc, object=0x81945ac, 
desc=0x8193244, nparam=0) at gbx_exec.c:1584
#8  0x080656a6 in raise_event (observer=observer@entry=0x81945ac, 
object=object@entry=0x81945ac, func_id=153, 
func_id@entry=154, nparam=0) at gbx_api.c:816
#9  0x08067064 in GB_Raise (object=0x81945ac, event_id=21, nparam=0) at 
gbx_api.c:952
#10 0xb71feb59 in gb_raise_window_Open (sender=0x8194650) at CWindow.cpp:70
#11 0xb71ddeec in gControl::emit (this=0x8194650, signal=0xb71feb26 
)
at gcontrol.cpp:1654
#12 0xb71ed61c in gMainWindow::emitOpen (this=0x8194650) at gmainwindow.cpp:476
#13 0xb71ed98d in gMainWindow::setVisible (this=0x8194650, vl=true) at 
gmainwindow.cpp:506
#14 0xb71ffdc1 in gControl::show (this=0x8194650) at gcontrol.h:154
#15 0x08051d39 in EXEC_native () at gbx_exec.c:1334
#16 0x080522b6 in EXEC_public_desc (class=0x81130fc, object=0x0, 
desc=0xb7230764 , nparam=0)
at gbx_exec.c:1574
#17 0x0804b4aa in main (argc=1, argv=0xb094) at gbx.c:391
(gdb) 
...



test.pas
Description: Binary data
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-12 Thread CJ

> Maybe libffi does not support Pascal, or Pascal does not correctly 
> implements "cdecl". Because even if you use the "cdecl" keyword, 
> apparently LIBVERSION expects one argument, whereas logically 
> it should 
> take no arguments, and returns a pointer to the returned structure.
> 
> Here is what I suggest:
> 
> 1) Search the FreePascal documentation to know how exactly 
> arguments are passed to functions, and how "cdecl" is implemented.
> 
> 2) Check that the way you declare your function ensures that 
> LIBVersion returns a pointer to the structure, or not a copy of
> the structure - This is what the argument name "result" tells us.
> 
> 3) If you can't return a pointer, transform the declaration of the 
> extern function in Gambas, so that the function takes one 
> argument which is a structure matching the Pascal structure.

Thanks for your suggestions, appreciated!

/CJ


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-23 Thread CJ

Just wanted to say thanks! With Benoît's helpfull pointers and some more
reading/digging I managed to sort out the issue I had with Gambas 3 and
Free Pascal.

Let me know if there are any general interest and I will post a simple demo.

/CJ


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get structure from extern function?

2014-07-25 Thread CJ

> Oh, please, do it. I am not used to Free Pascal, but it have 
> tempted me several times. So it will be useful to have an starting point 
> using FP shared libraries in addition to C/C++ ones.

I will post my findings along with simple example later.

/CJ



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ubuntu daily PPA comes back

2014-07-25 Thread CJ

> The Ubuntu daily PPA correctly builds again, so the Ubuntu 
> Gambas daily packages should be available again soon!

Appreciated!

/CJ



--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Magazine - Update

2014-08-23 Thread CJ
Hi Randall,

> First thank you to all who provided comments and feed back on 
> the first issue of Gambas Magazine. Now that I am back in the city I am 
> focused on the next issue of Gambas Magazine which will be released on 
> October 1st. 

Just wanted to say thanks for a great effort! Gambas Magazine is a great
idea and I'm sure it will help expanding Gambas userbase. 

And Gambas deserves it since it's a great development tool with awesome
group of developers behind it!

Thanks again and if I come up with something to contribute I will let
you know, looking forward to read the upcoming issue!

/CJ



--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I-Nex - Nice Gambas Program

2014-09-04 Thread CJ

I haven't seen it mentioned here so I just wanted to share what looks
like a nice Gambas program that I bumbed into. It's open source and
called "I-Nex" and shows lots of hardware information about the computer.

  http://i-nex.linux.pl

Haven't tried it yet but it looks really nice. Maybe this could be
something worth mentioning in upcoming Gambas Magazine?

/CJ



--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas ready for Ubuntu Phone?

2014-09-30 Thread CJ

> jockerfox,
> 
> I'll be interested to hear how you go with this,

Same here!

If you need compiled files for Debian ARMEL just let me know.
It would be quite easy to do a first test by copying the run
time and run a simple "Hello World".

/CJ


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Official release of Gambas 3.6

2014-11-01 Thread CJ
Hi Sebastian,

> I will have the stable PPA updated tonight with armhf builds 
> included ;)

Do you plan to add stable builds also for armel?

/CJ


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Official release of Gambas 3.6

2014-11-02 Thread CJ

Thanks for your swift reply Sebastian and of course thanks to the Gambas
team for 3.6.1!

> I'm afraid I can't. I'm limited by the automatic builders
> made available by Launchpad. Although they are available for official
packages,
> the are not yet available for personal PPAs. As soon as a new architecture
is made
> available, I will do my best to add it to the supported list.
>
> On Nov 2, 2014 2:10 AM, "CJ"  wrote:
>
> > Hi Sebastian,
> >
> > > I will have the stable PPA updated tonight with armhf builds
> > > included ;)
> >
> > Do you plan to add stable builds also for armel?

/CJ


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems compiling Gambas 3.6.1

2014-11-03 Thread CJ

> I tried to fix it in #6607. What compiler (version) do you use? I ask
> because there is nothing more in those lines than a forward
> typedef. As far as I can remember back, all my compilers could handle
this.

See below...

  gcc-4.4 4.4.5-8 The GNU C compiler

Just a FYI if it helps, the last version I compiled without problems on the
same setup was 3.5.4.

/CJ


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems compiling Gambas 3.6.1

2014-11-06 Thread CJ

Sebastian,

Is this compiling issue fixed in current Trunk version or am I
missunderstanding something?

> Benoît, could you please backport this fix to the 3.6 branch? 
> It was the only thing keeping me from compiling the compiler and 
> interpreter under Mac OS without issues. I will post another thread 
> in a few days with the remaining problems I had.
> 
> On Mon, Nov 3, 2014 at 6:46 AM, CJ  wrote:
> 
> >
> > > I tried to fix it in #6607. What compiler (version) do 
> you use? I ask
> > > because there is nothing more in those lines than a forward
> > > typedef. As far as I can remember back, all my compilers 
> could handle
> > this.
> >
> > See below...
> >
> >   gcc-4.4 4.4.5-8 The GNU C compiler
> >
> > Just a FYI if it helps, the last version I compiled without 
> problems on the
> > same setup was 3.5.4.
> >
> > /CJ

/CJ



--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problems compiling Gambas 3.6.1

2014-11-08 Thread CJ

> It is fixed in trunk! I was just asking to backloport it so 
> it is released with Gambas 3.6.2

Thanks! Will give it a go when 3.6.2 is officially released.

/CJ


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem compiling trunk on Debian wheezy

2014-11-11 Thread CJ

> Now I need a hint how to get gb.media compiled in wheezy - the compiler
> alway complains about gstreamer-video - I do not find an associated
package in the
> repository.

I remember that one...check if you have the following packages installed...

 gstreamer-1.0
 gstreamer-video-1.0

> Also jit is always disabled.

This one needs LLVM installed

/CJ


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.6.2

2014-11-13 Thread CJ

> I have made the release of Gambas 3.6.2 official.

Thank you Gambas Team!

I just read thru the changelog for 3.6.0 to 3.6.2 and damn, you guys
have been busy...lots of great new features to try :)

/CJ


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Similar problem compiling 3.6.2

2014-11-13 Thread CJ

> >From your log:
> || Unable to met pkg-config requirement: gmime-2.6
> || But gmime 2.4 has been detected!
> 
> Seems you need a higher version of gmine (2.6 instead of 2.4)
> 
> If you are running Raspbian you need package libgmime-2.6-dev.

Thanks Willy!

My bad, looks like I have to pay more attention but since it was a
similar error like the one I had before I jumped to the conclusion
to fast, sorry for the noise :/

/CJ


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-03 Thread CJ
Thanks for the reply Benoît, below are the output from gdb...

  ...
  (gdb) bt
  #0  THROW (code=0) at gb_error.c:463
  #1  0x0004a42c in THROW_STACK () at gb_error.c:477
  #2  0x0004a42c in THROW_STACK () at gb_error.c:477
  Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  (gdb)

Doen't say me much but hopefully you get enough clues to whats wrong...

/CJ

> Can you run your program through gdb to get the stack
> backtrace when you get the error?
>
> That way:
>
> $ cd /path/to/my/project
> $ gdb gbx3
> ...
> (gdb) break THROW
> (gdb) run
> ...
>
> And when the program breaks in the THROW function, it should
> be because
> of the stack overflow. Then you type:
>
> (gdb) bt
>
> Send me the result of that last command.
>
> Regards,
>
> --
> Benoît Minisini
>



--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-03 Thread CJ

> Did you compile Gambas with debugging information enabled?

Yes, the debug option was checked. Just to verify I recompiled again
and here are the complete output...

  root@raspi-dev:/home/cj/Gambas 3/Projekt/libwiringPi_irq# gdb gbx3
  GNU gdb (GDB) 7.0.1-debian
  Copyright (C) 2009 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "arm-linux-gnueabi".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  Reading symbols from /usr/local/bin/gbx3...done.
  (gdb) break THROW
  Breakpoint 1 at 0x4a15c: file gb_error.c, line 463.
  (gdb) run
  Starting program: /usr/local/bin/gbx3
  [Thread debugging using libthread_db enabled]
  wiringPi Init OK...
  [New Thread 0xb640d470 (LWP 14603)]
  IRQ setup OK...
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  [Switching to Thread 0xb640d470 (LWP 14603)]

  Breakpoint 1, THROW (code=0) at gb_error.c:463
  463 gb_error.c: No such file or directory.
  in gb_error.c
  (gdb) bt
  #0  THROW (code=0) at gb_error.c:463
  #1  0x0004a42c in THROW_STACK () at gb_error.c:477
  #2  0x0004a42c in THROW_STACK () at gb_error.c:477
  Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  (gdb)

Let me know if there anything else I can test...

/CJ



--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Test please ignore!

2013-05-25 Thread CJ
Just a test since I've had problems posting to this list, please
ignore!

/CJ



--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ

After compiling and updating to latest stable 3.4.1 version I retested
the HW interrupt code I had problems with when running 3.3.4 and have the
same error when testing on the RaspberryPi...

Code compiles OK but when I pull GPIO18 pin low (i.e generating the
interrupt)
it crashes with a "Stack overflow" error message.

  root@raspi-dev:/home/Projekt/libwiringPi_irq# ./libwiringPi_irq.gambas
  wiringPi Init OK...
  IRQ setup OK...
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  MMain.Main.110: #3: Stack overflow
  1: MMain.Main.110
  Segmentation fault

Below is the output from gdb...

  ...
  (gdb) bt
  #0  THROW (code=0) at gb_error.c:465
  #1  0x0004a9e4 in THROW_STACK () at gb_error.c:489
  #2  0x0004a9e4 in THROW_STACK () at gb_error.c:489
  Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  (gdb)

A informed by Benoît this is how to declare it in Gambas3 to use the
interrupt
function in wiringPi library...

>Extern wiringPiIsr(iPin As Integer, iEdgeType As Integer, pFunction As
Pointer) In "lib..."
>
>...
>
>And then you use the name of a static function as 'pFunction' argument
>when calling wiringPiIsr.
>
>Gambas will automatically create a internal callback that will execute
>the Gambas function through the interpreter as if it would be called
>directly like a C function.

As mentioned before problem may very well be in my code when setting up the
interrupt handler, attached is the source code and wonder if I'm doing it
correctly by placing the interrupt handler in a separate classfile so any
pointer
appreciated...

/CJ



libwiringPi_irq.tar.gz
Description: GNU Zip compressed data
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ

> What happens if there is no code at all inside the interrupt handler?

The same thing.

> Do you know in which context the interrupt handler is run? (signal
> handler context? Something else?)

Here is the response from wiringPi's author Gordon Henderson...

  The interrupt handler is a standard pthread process. The wiringPiISR code
  creates the thread and that thread then waits for the interrupt, then
  calls the ISR function - so the function called has to be "thread safe" -
  something I possibly ought to better document...

> And I don't understand why you get an error on line #110,
> whereas there is only 58 lines in your MMain.module file...

My bad! Reason to this is that I cleaned up the code before making the
tar-ball
below is the correct output for the attached code...

  root@raspi-dev:/home/Projekt/libwiringPi_irq# ./libwiringPi_irq.gambas
  wiringPi Init OK...
  IRQ setup OK...
  Waiting
  Waiting
  Waiting
  Waiting
  Waiting
  MMain.Main.52: #3: Stack overflow
  1: MMain.Main.52

And output from gdb...

  ...
  (gdb) bt
  #0  THROW (code=0) at gb_error.c:465
  #1  0x0004a9e4 in THROW_STACK () at gb_error.c:489
  #2  0x0004a9e4 in THROW_STACK () at gb_error.c:489
  Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  (gdb)

The stack overflow is happening on the "Wait 1" line in the Do...Loop and
same
thing happens if I remove the Wait and Print command in the Do...Loop.

/CJ


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Shared WiringPi library for RasPi

2013-05-25 Thread CJ

> The interpreter cannot be run in another thread. This is the
> reason why you get a crash.

Thanks for explaining the problem and possible solutions Benoît!

I have forwarded your input to wiringPi's author so lets see whats
happening and if he may consider adding a "interpreter friendly"
interrupt function to his library.

/CJ



--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user