Search found 2388 matches

by Thomas Linder Puls
10 Apr 2019 6:40
Forum: Visual Prolog
Topic: onPaint/3 vs onMouseUp/4 event handling
Replies: 9
Views: 209

Re: onPaint/3 vs onMouseUp/4 event handling

Yes, it is the same in Vip 9.
by Thomas Linder Puls
9 Apr 2019 11:35
Forum: Visual Prolog
Topic: onPaint/3 vs onMouseUp/4 event handling
Replies: 9
Views: 209

Re: onPaint/3 vs onMouseUp/4 event handling

Sorry for the late answer. I have not really been able to figure out what the problem is. My main problem is that everything works when I debug the program, but it fails when I don't debug it. In any case it has to do with getting a device context for the window and creating a corresponding in memor...
by Thomas Linder Puls
31 Mar 2019 16:30
Forum: Visual Prolog
Topic: Raising an exception in a class initializer
Replies: 4
Views: 147

Re: Raising an exception in a class initializer

Sorry for the late reply, I have been without access to a computer for a while. Anyways, I have reproduced the problem, and we will include the fix in the next release. Until then you can choose to apply the fix yourself. the clause for mainExe::run/1 should look like this: clauses run(Runnable) :- ...
by Thomas Linder Puls
20 Mar 2019 11:18
Forum: Visual Prolog
Topic: onPaint/3 vs onMouseUp/4 event handling
Replies: 9
Views: 209

Re: onPaint/3 vs onMouseUp/4 event handling

OK, so clientWin_putClipboardBMP does this: clauses clientWin_putClipboardBMP(W) :- WinVPI = W:getVpiWindow(), Pic = vpi::pictGetFromWin(WinVPI, vpi::winGetClientRect(WinVPI)), cbPutPicture(Pic). And it is vpi::pictGetFromWin that raises the exception. So the question is what Source is in your code?...
by Thomas Linder Puls
19 Mar 2019 10:56
Forum: Visual Prolog
Topic: onPaint/3 vs onMouseUp/4 event handling
Replies: 9
Views: 209

Re: onPaint/3 vs onMouseUp/4 event handling

The paint event is special because it has access to a windowGDI with which to do painting. This is a "thing" that has top be released again, and therefore you should never use processEvents inside a paint listener. The windowGDI is probably the difference in the two situations, but we don't know wha...
by Thomas Linder Puls
16 Mar 2019 22:02
Forum: Visual Prolog
Topic: Scope parameter in anonymous predicate
Replies: 1
Views: 231

Re: Scope parameter in anonymous predicate

No, that doesn't seem intended. We will look at it.
by Thomas Linder Puls
15 Mar 2019 9:52
Forum: Visual Prolog
Topic: memory::allocHeap/3->
Replies: 5
Views: 1242

Re: memory::allocHeap/3->

Memory contexts are only interesting if and when you use the memory profiler. And you can easily track down your allocations and change context (which is typically something you do anyways when you are profiling).

I.e. it is not very important which context you use.
by Thomas Linder Puls
14 Mar 2019 14:30
Forum: Visual Prolog
Topic: Error: MemProfileAnalysis.exe not found
Replies: 9
Views: 1576

Re: Error: MemProfileAnalysis.exe not found

vipOldDomains is not in the Personal Edition.

You can add it to the project from an older version, but the right thing to do is to eliminate the use of it.

Notice the "old" in vpiOldDomains.
by Thomas Linder Puls
14 Mar 2019 12:39
Forum: Visual Prolog
Topic: Error: MemProfileAnalysis.exe not found
Replies: 9
Views: 1576

Re: Error: MemProfileAnalysis.exe not found

The working project is already attached above.
by Thomas Linder Puls
14 Mar 2019 12:27
Forum: Visual Prolog
Topic: memory::allocHeap/3->
Replies: 5
Views: 1242

Re: memory::allocHeap/3->

Yes, that is unfortunate. I don't know what you are allocating. But you should notice that many things can be allocated using these polymorphic predicates: predicates alloc_kind : (memoryKind MemoryKind, context ContextType = contextType_pfc) -> PointerType Allocated. % @short Allocates an array of ...
by Thomas Linder Puls
13 Mar 2019 23:32
Forum: Visual Prolog
Topic: memory::allocHeap/3->
Replies: 5
Views: 1242

Re: memory::allocHeap/3->

Actually, it is not possible to supply a default value to that predicate, because then it would conflict with allocHead/2->.
by Thomas Linder Puls
13 Mar 2019 21:43
Forum: Visual Prolog
Topic: Error: MemProfileAnalysis.exe not found
Replies: 9
Views: 1576

Re: Error: MemProfileAnalysis.exe not found

It takes 2 minutes to make the project build ( :D ). Accept to remove all missing packages, and to add all new, etc. And then delete everything that has to do with classInfo from all the files (one predicate and corresponding clauses and two constants in each class). And then the project compiles an...
by Thomas Linder Puls
13 Mar 2019 18:00
Forum: Visual Prolog
Topic: Error: MemProfileAnalysis.exe not found
Replies: 9
Views: 1576

Re: Error: MemProfileAnalysis.exe not found

That sounds strange.

How do you run the program?
by Thomas Linder Puls
13 Mar 2019 11:15
Forum: Visual Prolog
Topic: in_test and in_iterate attributes
Replies: 1
Views: 1416

Re: in_test and in_iterate attributes

I am glad you like it. In principle we could relax the requirements to in_test and in_iterate , but I don't think the benefit will match the necessary effort. And in any case it would not be effective until the next major release. I suggest that you introduce dummy predicates for in_test and in_iter...