On Sun, 06 Mar 2022 16:22:26 -0500, Arthur T. <
[email protected]d>
declaimed the following:
I called the empty function between the open and the console read. No >difference. I then actually updated the clipboard after the empty,
and again no difference (but the clipboard was actually updated).
So, I'm leaning towards "bug". Before I report it, I'll have to get
the newest Regina and (if there's a newer one) newest W32Funcs and
try again.
http://home.interlog.com/~ptjm/software.html
W32 Funcs 1.5.1 19 December 2003
is the only reference I've found for it.
Includes source files so...
I'm now pondering (I've never studied exactly how DLLs operate on Windows)...
-=-=-
static int ocb(int open)
{
static int opencount;
int rc = TRUE;
if (open && !opencount++) {
rc = OpenClipboard(NULL);
}
else if (!--opencount) {
rc = CloseClipboard();
}
/* try to avoid issues with excess calls to w32clipclose */
if (opencount < 0)
opencount = 0;
return rc;
}
-=-=-
"opencount" is declared static within that function. As I recall my C, that means it retains its value between invocations of the function (ie; is neither stack nor heap allocated).
BUT for a shared library/DLL -- does static mean all users of the DLL see the same opencount, or is "static" memory allocated per connecting
process. Microsoft documentation suggests the latter -- otherwise I could
see the open returning success.
-=-=-
rxfunc(w32clipopen)
{
result->strlength = sprintf(result->strptr, "%d", ocb(1));
return 0;
}
rxfunc(w32clipclose)
{
result->strlength = sprintf(result->strptr, "%d", ocb(0));
return 0;
}
-=-=-
It's going to be quite a while before I can justify the amount of
time needed to properly document a bug report, so that's not going to
happen soon. I take reporting bugs seriously, and try to make my
report terse, yet complete and correct.
But is anyone working on those libraries <G> There doesn't seem to have been any work since 2004. The last activity by the author, in this
newsgroup, was March 11 2008. (Now to work on killing the downloading of
14K messages!)
--
Wulfraed Dennis Lee Bieber AF6VN
[email protected] http://wlfraed.microdiversity.freeddns.org/
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)