RE: Programmatically consulting a prolog file

josh b <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hey,

pl2wam was not in my path, so I added it. Didn't make any difference.

I could not find any function called Pl_Write_Simple(), however, I did try various things like Pl_Rd_String() and Pl_Exec_Continuation(Pl_Find_Atom("throw"), 1, &except);    (Where except was the variable returned from Pl_Get_Exception()).

However, doing anything with except produces an access violation error. In fact, doing anything with any term after trying to consult causes access violations, even with terms that were available and working before hand and were unmodified. Additionally, using Pl_Exec_Continuation anywhere in the code seems to cause a violation.

Initially to get it to work, I had to recompile Prolog, using the instructions (Followed exactly, save for directory locations) found at http://lists.gnu.org/archive/html/bug-prolog/2009-11/msg00002.html Just wondering if that could be causing all these violations.

Cheers, 
Josh
 		 	   		  
_________________________________________________________________
Need a new place to live? Find it on Domain.com.au
http://clk.atdmt.com/NMN/go/157631292/direct/01/

_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.