Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passive Observers
Message
From
29/12/1998 12:53:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/12/1998 11:29:26
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00171144
Message ID:
00171264
Views:
27
>>>I am trying to implement an Observer object to send messages to objects on a form. The problem is that after I Subscribe my object to the Observer and then try to close the form on which the object exists, the form won't close. I assume this is because the Observer still has a reference to the object. I have tried releasing the object reference (from the Observer) in the objects Destroy method, but that didn't work. Where and how should the object "Unsubscribe"?
>>Steve,
>>Just for ease, before form.release, removeobject observer.
>>Cetin
>
>The Observer object is part of my application object. I must be able to send messages not only to objects within a form, but from an object on one form to an object on another form.
Yeah Steve,
I noticed this just after pressing send and pressed stop. But obviously I couldn't stop the message. This hit me before and I still don't have an answer :(
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform