Search found 73 matches

by mdosnov2016
23 Oct 2017 21:08
Forum: Visual Prolog
Topic: file::consult
Replies: 3
Views: 1249

All the previously working (with versions 5.2x) external databases I tried only one of them (the smallest) works. the others give me error "invalid handle".
Are there any differences in the way VP8 deals with external databases and consult?
Michael
by mdosnov2016
23 Oct 2017 21:07
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

I modified a little your code as follows, in order to increment the line counter and then just understand where the error is with my database, however this gives me syntax errors. Can you please help me with my recursive predicates? showBadTerms(FN, Line) :- IS = inputStream_file::openFile(FN), chec...
by mdosnov2016
23 Oct 2017 6:05
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

Thank you.
I just recall some statement from the old versions documentation that the facts need to be groupped.
But I had the same facts as now with the old 5.2x version and everything then was OK,
I don't understand why VP8 has a problem with these databases.

Michael
by mdosnov2016
22 Oct 2017 21:25
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

thank you Harrison,

what about if I have multiple different types of facts (and not just i(integer))?
can they be intermixed in order in the database file?

Michael
by mdosnov2016
22 Oct 2017 12:13
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

the biggest I tried with is 500 Kbytes text with 5000 lines of facts (1 fact per line).

Michael
by mdosnov2016
21 Oct 2017 17:45
Forum: Visual Prolog
Topic: file::consult
Replies: 3
Views: 1249

Dear Thomas,

file::consult
unfortunately doesn't work for me for big databases.

is there an alternative?

Michael
by mdosnov2016
21 Oct 2017 17:24
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

Dear all, I have been using the call: file::consult("ITF_FACT.DBA", backend_dbase), with various ITF_FACT.DBA files from different applications but coherent all to the facts database declarations. I 've notice that for some, relatively small applications there is no problem with this consult predica...
by mdosnov2016
20 Oct 2017 18:28
Forum: Visual Prolog
Topic: facts database in vp8
Replies: 24
Views: 6201

Hi, as with your previous instructions I have: implement backend ... class facts - backend_dbase ... and later towards the global goal, I have the call: ... file::consult("ITF_FACT.DBA", backend_dbase), ... and when I debug and/or run I get at this point: error: invalid handle can anybody give me th...
by mdosnov2016
20 Oct 2017 18:00
Forum: Visual Prolog
Topic: file5x::write
Replies: 4
Views: 1346

Actually I just created a brand new console type project and I placed in place of main.pack my backend.pack.

Now I can see the messages written on screen in my console window.
Thank you,

Michael
by mdosnov2016
20 Oct 2017 17:12
Forum: Visual Prolog
Topic: file5x::write
Replies: 4
Views: 1346

Dear Thomas,
I tried adding the code that you proposed,
but when I reach this point in the VIP8 debugger it tells me:
error: console cannot be initialised.

Can't I run it with the debugger?

Best regards,
Michael
by mdosnov2016
20 Oct 2017 8:22
Forum: Visual Prolog
Topic: file5x::write
Replies: 4
Views: 1346

Thank you Thomas.

And if I want from inside the Prolog code to write/read to/from different files (e.g. .log) do I need
to initialise them the same way?
What would be then an example of code (call)?

Best regards,
Michael
by mdosnov2016
19 Oct 2017 7:24
Forum: Visual Prolog
Topic: project goal
Replies: 14
Views: 4087

Dear Thomas, I think that it 'd be a very good idea also to have a continuation and backward compatibility when you issue new versions of Prolog. It is not realistic to ask experienced users of VP to throw away everything they knew about the language and their projects and start again from scratch. ...
by mdosnov2016
19 Oct 2017 6:13
Forum: Visual Prolog
Topic: file5x::write
Replies: 4
Views: 1346

file5x::write

Hello all. My write predicate call fails with error message: Exception in module ... <pre>pfc/stream/stdiostate.pro(7) : error r329: Single fact 'outputStream'</pre> from internal database 'stdioState : stdioState@objectDB' has no value and it terminates. My code excerpt is as follows: file5x::write...
by mdosnov2016
15 Oct 2017 21:08
Forum: Visual Prolog
Topic: problem with includes
Replies: 1
Views: 1167

problem with includes

I have been receiving problems with includes in the 64-bit build. for example clearly in the code I have: #include @"pfc\\application\\exe\\exe.ph" #include @"pfc\\filesystem\\filesystem.ph" #include "TaskWindow\\taskWindow.ph" #include "resourceIdentifiers.i" #include @"pfc\\5xVIP\\5xBreakControl\\...
by mdosnov2016
15 Oct 2017 20:45
Forum: Visual Prolog
Topic: project goal
Replies: 14
Views: 4087

I tried to include the write predicate as you recommended but I got thousands of errors that certain
libraries and includes are not found.

Do you have an easier procedure instead of write?

thank you,

Michael Dossis