Search found 87 matches

by luowy
Sat Oct 16, 2021 1:14 am
Forum: BlackBox Framework
Topic: HostPorts.Input fixup
Replies: 4
Views: 10876

HostPorts.Input fixup

Recently, BB became unstable after win10 automatic update, especially during Drag&Drop mouse operations, e.g. Alt + Drag to pull attributes, BB will lose respond... After applying the following patch, My BB is working again. PROCEDURE (rd: Rider) Input* (OUT x, y: INTEGER; OUT modifiers: SET; OU...
by luowy
Tue Aug 24, 2021 6:46 am
Forum: Common questions
Topic: Study of the BlackBox Component Builder
Replies: 14
Views: 21709

Re: Study of the BlackBox Component Builder

I was hitting a wall there when I tried to use the stringreader, got error after error at the array of bytes and array of chars. in the CP language, the CHAR is 16bit(unsigned short), SHORTCHAR is 8bit(unsigned char), the BYTE is 8bit (signed char) , the conversion between them use builtin function...
by luowy
Mon Aug 23, 2021 4:33 am
Forum: Common questions
Topic: Study of the BlackBox Component Builder
Replies: 14
Views: 21709

Re: Study of the BlackBox Component Builder

The only strange thing is that if the device is not attached to the USB-port BB exits with a TRAP 0. after "CommV24.Open" you should check IF c # NIL THEN please refer to https://forum.oberoncore.ru/viewtopic.php?f=2&t=20&hilit=com+port#p21199 for more info about V24 At first I th...
by luowy
Sat Feb 27, 2021 3:16 am
Forum: Bug
Topic: COM reference leak when procedure trapped
Replies: 3
Views: 11076

Re: COM reference leak when procedure trapped

thanks X512!
I made a fixup, three files has changed: DevCPC486, DevCPV486, Kernel;
For easy testing, I build the whole FW(base on the last distribution of community), TestCom is a test file;
Feedback is welcome!
by luowy
Thu Feb 04, 2021 11:55 am
Forum: Bug
Topic: COM reference leak when procedure trapped
Replies: 3
Views: 11076

Re: COM reference leak when procedure trapped

understand, but how to do?
by luowy
Sat Oct 10, 2020 4:43 am
Forum: Bug
Topic: Trap on [code] procedure call
Replies: 6
Views: 14103

Re: Trap on [code] procedure call

I would suggest to reject it in the backend, though, because code procedures are highly platform specific. see DevCPC.Call: Result(x.obj.link, tag) (* use result load for first parameter *) if reject it in the backend, the errpos will be point to the end of the procedure head, instead of the first ...
by luowy
Wed Oct 07, 2020 2:22 pm
Forum: Bug
Topic: Trap on [code] procedure call
Replies: 6
Views: 14103

Re: Trap on [code] procedure call

the first parameter of code procedure is special, reject non varpar comp type in frontend is a choice solution for this issue.
by luowy
Sat Sep 05, 2020 1:31 pm
Forum: Bug
Topic: CHAR range-checking breach
Replies: 1
Views: 7455

Re: CHAR range-checking breach

agree, 65536 is incorrect, should be fixed. not sure add FreeHi(y) or not.
by luowy
Wed Aug 26, 2020 10:56 am
Forum: Bug
Topic: MAX with two arguments
Replies: 10
Views: 16347

Re: MAX with two arguments

in my opinion,it is a bug, the compiler needs to be fixed; accoding language report 10.3 as Zinn point out The following table lists the predeclared procedures. Some are generic procedures, i.e., they apply to several types of operands. v stands for a variable, x and y for expressions, and T for a t...
by luowy
Tue Jul 28, 2020 4:15 pm
Forum: Bug
Topic: Compiler trap in Real64 op ADR(x)
Replies: 13
Views: 21578

Re: Compiler trap in Real64 op ADR(x)

adimetrius wrote:I'm pretty sure both DevCPL and DevCPC are in the backend.
you are right .