Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

There's got to be more to life than compile-and-go.


programming / comp.lang.smalltalk.dolphin / Occasional "Common control call failed" error setting model of DateTimePicker

SubjectAuthor
* Occasional "Common control call failed" error setting model of DateTimdanie...@gmail.com
`* Re: Occasional "Common control call failed" error setting model of DateTimpicoVerse
 `- Re: Occasional "Common control call failed" error setting model of DateTimdanie...@gmail.com

1
Subject: Occasional "Common control call failed" error setting model of DateTimePicker
From: danie...@gmail.com
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 1 Oct 2020 18:09 UTC
X-Received: by 2002:a0c:c48f:: with SMTP id u15mr9095828qvi.55.1601575758912;
Thu, 01 Oct 2020 11:09:18 -0700 (PDT)
X-Received: by 2002:aca:d07:: with SMTP id 7mr782838oin.65.1601575758632; Thu,
01 Oct 2020 11:09:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Thu, 1 Oct 2020 11:09:18 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=73.145.176.159; posting-account=T9QyoQoAAADOKeQdWgBWNEPoknBuEcQZ
NNTP-Posting-Host: 73.145.176.159
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a2bce7a3-6cab-4a11-bdcd-aeb25bee9265n@googlegroups.com>
Subject: Occasional "Common control call failed" error setting model of DateTimePicker
From: daniels...@gmail.com (danie...@gmail.com)
Injection-Date: Thu, 01 Oct 2020 18:09:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
I have a large body of acceptance tests that rapidly create and destroy shells, and every once in a long while (like one time in 1000), they get an error when initially opening a shell and trying to connect the model to a DateTimePicker. The error doesn't give any details, and I don't know enough about Win32, never mind the Common Controls, to have any idea if there are details available somewhere. The stacktrace looks something like:

DateTimePicker(ControlView)>>errorInCommonControlCall
DateTimePicker>>dtmSetSystemTime:lpSysTime:
....
DateTimePicker(View)>>onModelChanged
DateTimePicker(View)>>model:
DatePresenter(Presenter)>>connectView
DatePresenter(Presenter)>>view:
....
MyShell(Presenter)>>attachSubPresenterViews:
....
MyShell(Presenter)>>createView:

Any ideas (a) what the problem is and how to actually fix it, or failing that (b) how to get more info about the error, or failing that (c) any possible workaround (i.e. what would I have to do to retry with as little disruption as possible—is literally just retrying likely to work? Destroy/recreate the DateTimePicker first? Destroy/recreate the whole shell?)


Subject: Re: Occasional "Common control call failed" error setting model of DateTimePicker
From: picoVerse
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 10 Nov 2020 04:45 UTC
References: 1
X-Received: by 2002:aed:3a63:: with SMTP id n90mr17061785qte.133.1604983552191;
Mon, 09 Nov 2020 20:45:52 -0800 (PST)
X-Received: by 2002:a9d:645:: with SMTP id 63mr12145504otn.182.1604983551971;
Mon, 09 Nov 2020 20:45:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Mon, 9 Nov 2020 20:45:51 -0800 (PST)
In-Reply-To: <a2bce7a3-6cab-4a11-bdcd-aeb25bee9265n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=67.170.96.7; posting-account=xPzC8QkAAACJR3tYIneNbKULYK9sb-Jf
NNTP-Posting-Host: 67.170.96.7
References: <a2bce7a3-6cab-4a11-bdcd-aeb25bee9265n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d5a8cccc-6179-4c6e-9e05-f8b37126aeb8n@googlegroups.com>
Subject: Re: Occasional "Common control call failed" error setting model of DateTimePicker
From: picove...@gmail.com (picoVerse)
Injection-Date: Tue, 10 Nov 2020 04:45:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
maybe if you included a little Delay ? right before the Error ? or something maybe things are happening too fast at an inhuman rate and therefore unexpectedly ? some how the code is expecting to have a human response time amount of time left to get it's thing done but in this case it does not . maybe . just a wild shot in the dark

what i am trying to do is have an isTesting mode that cuts the GUI out of the picture and just returns to the rest of it whatever the GUI would have returned assuming the GUI is correct . but it seems a bit extra . so far . is this what they call a mock ? i don't know . so the GUI never actually opens on screen is the idea . you never send the >>show.. Message or something


Subject: Re: Occasional "Common control call failed" error setting model of DateTimePicker
From: danie...@gmail.com
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 10 Nov 2020 17:23 UTC
References: 1 2
X-Received: by 2002:aed:3c78:: with SMTP id u53mr19845329qte.364.1605029002477; Tue, 10 Nov 2020 09:23:22 -0800 (PST)
X-Received: by 2002:a9d:334:: with SMTP id 49mr14157052otv.21.1605029002229; Tue, 10 Nov 2020 09:23:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.smalltalk.dolphin
Date: Tue, 10 Nov 2020 09:23:21 -0800 (PST)
In-Reply-To: <d5a8cccc-6179-4c6e-9e05-f8b37126aeb8n@googlegroups.com>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=73.145.176.159; posting-account=T9QyoQoAAADOKeQdWgBWNEPoknBuEcQZ
NNTP-Posting-Host: 73.145.176.159
References: <a2bce7a3-6cab-4a11-bdcd-aeb25bee9265n@googlegroups.com> <d5a8cccc-6179-4c6e-9e05-f8b37126aeb8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e9ca4acd-5121-4a2f-9797-7875fb716d54n@googlegroups.com>
Subject: Re: Occasional "Common control call failed" error setting model of DateTimePicker
From: daniels...@gmail.com (danie...@gmail.com)
Injection-Date: Tue, 10 Nov 2020 17:23:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
View all headers
Actually, I figured it out—it was a rounding error resulting in an invalid SYSTEMTIME struct about 1/2000th of the time—now fixed. See https://github.com/dolphinsmalltalk/Dolphin/issues/1045

On Monday, November 9, 2020 at 11:45:52 PM UTC-5, picoVerse wrote:
maybe if you included a little Delay ? right before the Error ? or something maybe things are happening too fast at an inhuman rate and therefore unexpectedly ? some how the code is expecting to have a human response time amount of time left to get it's thing done but in this case it does not . maybe . just a wild shot in the dark

what i am trying to do is have an isTesting mode that cuts the GUI out of the picture and just returns to the rest of it whatever the GUI would have returned assuming the GUI is correct . but it seems a bit extra . so far . is this what they call a mock ? i don't know . so the GUI never actually opens on screen is the idea . you never send the >>show.. Message or something


1
rocksolid light 0.7.2
clearneti2ptor