Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4962 > unrolled thread

Error in winodw & bbrowser

Started byMartin <spam@spam.spam>
First post2013-03-26 09:44 +0000
Last post2013-03-28 11:56 -0400
Articles 7 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Error in winodw & bbrowser Martin <spam@spam.spam> - 2013-03-26 09:44 +0000
    Re: Error in winodw & bbrowser Camille Kater <katercam@pt.lu> - 2013-03-26 12:05 +0100
      Re: Error in winodw & bbrowser Martin <spam@spam.spam> - 2013-03-26 12:19 +0000
        Re: Error in winodw & bbrowser Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2013-03-26 15:06 +0100
          Re: Error in winodw & bbrowser Martin <spam@spam.spam> - 2013-03-27 09:33 +0000
    Re: Error in winodw & bbrowser D.J.W. van Kooten <public@ic2remove.this.com> - 2013-03-27 20:55 +0100
    Re: Error in winodw & bbrowser "Jamal" <jamal@examples.net> - 2013-03-28 11:56 -0400

#4962 — Error in winodw & bbrowser

FromMartin <spam@spam.spam>
Date2013-03-26 09:44 +0000
SubjectError in winodw & bbrowser
Message-ID<L5e4t.201828$Wp1.76141@fx02.fr7>
The dispatch for a bbrowser is being called and the parent window has 
already been shut down, how can I prevent this from happening please?

Anyway of forcing the bbrowser class to close before the screen.

Failing on a self:owner

[toc] | [next] | [standalone]


#4963

FromCamille Kater <katercam@pt.lu>
Date2013-03-26 12:05 +0100
Message-ID<515180E7.1040104@pt.lu>
In reply to#4962
Hi,

Did you try "SELF:owner:owner" ?

Camille

On 26/03/2013 10:44, Martin wrote:
> The dispatch for a bbrowser is being called and the parent window has
> already been shut down, how can I prevent this from happening please?
>
> Anyway of forcing the bbrowser class to close before the screen.
>
> Failing on a self:owner

[toc] | [prev] | [next] | [standalone]


#4964

FromMartin <spam@spam.spam>
Date2013-03-26 12:19 +0000
Message-ID<lng4t.228649$VD7.52755@fx08.fr7>
In reply to#4963
Self:Owner is correct, just that it has disappeared but Self has not.

On 26/03/2013 11:05, Camille Kater wrote:
> Hi,
>
> Did you try "SELF:owner:owner" ?
>
> Camille
>
> On 26/03/2013 10:44, Martin wrote:
>> The dispatch for a bbrowser is being called and the parent window has
>> already been shut down, how can I prevent this from happening please?
>>
>> Anyway of forcing the bbrowser class to close before the screen.
>>
>> Failing on a self:owner
>

[toc] | [prev] | [next] | [standalone]


#4966

FromKarl Faller <k.faller_withoutthat_@onlinehome.de>
Date2013-03-26 15:06 +0100
Message-ID<3pa3l89bhndmq1u5e5h9e8v11arso3uuls@4ax.com>
In reply to#4964
Martin,
so you have to hinder the parent to close, before bB is nulled. ->
register, unregister, queryclose check is the way to go.
That said, i never had to do something special with bB when i simply
dropped it's control on a form, how do you do it?

Karl

>Self:Owner is correct, just that it has disappeared but Self has not.
>
>On 26/03/2013 11:05, Camille Kater wrote:
>> Hi,
>>
>> Did you try "SELF:owner:owner" ?
>>
>> Camille
>>
>> On 26/03/2013 10:44, Martin wrote:
>>> The dispatch for a bbrowser is being called and the parent window has
>>> already been shut down, how can I prevent this from happening please?
>>>
>>> Anyway of forcing the bbrowser class to close before the screen.
>>>
>>> Failing on a self:owner
>>

[toc] | [prev] | [next] | [standalone]


#4967

FromMartin <spam@spam.spam>
Date2013-03-27 09:33 +0000
Message-ID<G1z4t.125711$971.5327@fx14.fr7>
In reply to#4966
Nothing special I just use it, but we had an error log which the only 
possible reason is that the parent closed first.

We will need to try to duplicate but their network is VERY slow

On 26/03/2013 14:06, Karl Faller wrote:
> Martin,
> so you have to hinder the parent to close, before bB is nulled. ->
> register, unregister, queryclose check is the way to go.
> That said, i never had to do something special with bB when i simply
> dropped it's control on a form, how do you do it?
>
> Karl
>
>> Self:Owner is correct, just that it has disappeared but Self has not.
>>
>> On 26/03/2013 11:05, Camille Kater wrote:
>>> Hi,
>>>
>>> Did you try "SELF:owner:owner" ?
>>>
>>> Camille
>>>
>>> On 26/03/2013 10:44, Martin wrote:
>>>> The dispatch for a bbrowser is being called and the parent window has
>>>> already been shut down, how can I prevent this from happening please?
>>>>
>>>> Anyway of forcing the bbrowser class to close before the screen.
>>>>
>>>> Failing on a self:owner
>>>

[toc] | [prev] | [next] | [standalone]


#4978

FromD.J.W. van Kooten <public@ic2remove.this.com>
Date2013-03-27 20:55 +0100
Message-ID<2kj6l81r3c5h3dhedgb23nkekbgp6s3kk1@4ax.com>
In reply to#4962
On Tue, 26 Mar 2013 09:44:19 +0000, Martin <spam@spam.spam> wrote:

Hello Martin,

>The dispatch for a bbrowser is being called and the parent window has 
>already been shut down, how can I prevent this from happening please?
>
In general it helps in situation where something can go wrong because
a certain object is not yet instantiated or already destroyed, to
check for isnil(oObject) before executing the code.

Dick

[toc] | [prev] | [next] | [standalone]


#4984

From"Jamal" <jamal@examples.net>
Date2013-03-28 11:56 -0400
Message-ID<kj1p7d$h36$1@speranza.aioe.org>
In reply to#4962
Martin,

You need to create a stack of child windows array on the parent and prevent 
parent from closing if there are still child windows open, or you can loop 
thru child window and issue EndWindow(TRUE).
As you open new child window, you need pass the parent (SELF) object to 
child window, then add child object (SELF) to parent child stack.

For this, you need to subclass your parent window and add proper 
queryclose() code for both parent and child window and resize your stack 
accordingly, much like LIFO (Last In First Out).

Jamal



"Martin"  wrote in message news:L5e4t.201828$Wp1.76141@fx02.fr7...

The dispatch for a bbrowser is being called and the parent window has
already been shut down, how can I prevent this from happening please?

Anyway of forcing the bbrowser class to close before the screen.

Failing on a self:owner 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web