Calling external functions

View: New views
2 Messages — Rating Filter:   Alert me  

Calling external functions

by Colin Close :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am having trouble with calling an external fuction from a trigger in
Bond. I have constructed a function much along the lines of those to be
found in Paymaster in details.c in the nz directory it seems though that
any attempt to run the Bond functions that send the SQL to the db server
via the _db_exec call causes a segfault. Is this currently broken or is
it a problem with my setup? I tried running paymaster and the one
function I tried running from that also segfaulted. I can persuade the
funtion to call and return as long as I call no Bond functions or try to
extract more than one argument from the GList.
The DTD indicates that arguments to an external function are presented
as a GList but what happens if I present two constants is this also
presented as a GList.
Any help and enlightenment gratefully received.  


Colin Close

_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users

Re: Calling external functions

by Dru-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It should work fine, I dont know of any problems with calling external
functions. Do you know what version of glib you are using?

If you could run bondfrontend from within gdb, and when it segfaults,
paste back the output. Do a bt to get a back trace.




Colin Close wrote:

> Hi
>
> I am having trouble with calling an external fuction from a trigger in
> Bond. I have constructed a function much along the lines of those to be
> found in Paymaster in details.c in the nz directory it seems though that
> any attempt to run the Bond functions that send the SQL to the db server
> via the _db_exec call causes a segfault. Is this currently broken or is
> it a problem with my setup? I tried running paymaster and the one
> function I tried running from that also segfaulted. I can persuade the
> funtion to call and return as long as I call no Bond functions or try to
> extract more than one argument from the GList.
> The DTD indicates that arguments to an external function are presented
> as a GList but what happens if I present two constants is this also
> presented as a GList.
> Any help and enlightenment gratefully received.  
>
>
> Colin Close
>
> _______________________________________________
> Bond-users mailing list
> Bond-users@...
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


--
Andrew Hill
treshna Enterprises Ltd
Tel: 03 366 3649
Cel: 021 660 819
Web: www.treshna.com
IT Consultancy - Websites - Database development - Computer tech support

_______________________________________________
Bond-users mailing list
Bond-users@...
http://hcoop.net/cgi-bin/mailman/listinfo/bond-users
LightInTheBox - Buy quality products at wholesale price!