Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple instances of window open in memory

150 views
Skip to first unread message

Richard O.

unread,
Jun 4, 2003, 8:52:42 AM6/4/03
to
When I open up a window it appears multiple times in memory and other times
it does not. I think this is causing my application to crash when I try to
close the window. The code looks something like this.

for i= 0 to n

open(w_1) //Some times opens two instances or more in
memory.

w_1.openuserobjectwithParm(iu,.....)

if isvalid(w_1) then close(w_1) //Closes all instances
but eventually the application crashes at this
point

next


steve_katz_[teamsybase]

unread,
Jun 4, 2003, 11:21:35 AM6/4/03
to
>>When I open up a window it appears multiple times in memory and other
times it does not. I think this is causing my application to crash when I
try to close the window. The code looks something like this.

for i= 0 to n

open(w_1) //Some times opens two instances more in
memory.
w_1.openuserobjectwithParm(iu,.....)

if isvalid(w_1) then close(w_1) //Closes all instances
but eventually the application crashes at this
point
next
<<

Take a look at Syntax 1 AND Syntax 2 of the Open() function and see which
one you actually want to use.

Syntax 1 will only EVER open one instance of the windowtype. Subsequent
calls will only activate the window.

Syntax 2 will allow mulitple instances to open and subsequent calls will
open additional instances.

steve
[TeamSybase]

0 new messages