Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reset XSB from C?

1 view
Skip to first unread message

meener

unread,
May 11, 2006, 6:41:25 PM5/11/06
to
I am remote controlling Xsb from an external C# wrapper and I need to
load a datalog program, run a query, unload it, and then load another
one with no residual side effects from the previous program but I cant
get this to work.

When I run my two programs\queries seperately they work fine. When I
load them together the first one works great, but after reconsulting,
the second program fails to return the correct results. Is there an
API or command to simply reset the Xsb engine so I can repeat this
cycle?

thanks

P.S. - I am using the following APIs\commands to control Xsb
programatically:

1. API- Init / _xsb_init_string@4

2. Command - path_sysop(chdir,'mypath').
3. Command - reconsult('filenameNoExtension').
4. API- Query() / _xsb_query_string_string_b@20
5. API- CloseQuery() / _xsb_close_query@0
6. goto step 2 with new program filename

7. API- Close() / _xsb_close@0

0 new messages