Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can not make subject / observer to work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01378805
Message ID:
01378944
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Naomi,

Do you have the call to the Add method in the SubjectTypesObj’s SetParameters method? Have you verified that the subject name in the Add method call matches the name of your subject? You could always trace the Add method of the observer to make sure it is getting registered correctly in the observer manager.

HTH

-Dan

>Hi everybody,
>
>I could not figure out why one of my form where I put an observer does not run its ProcessUpdate method.
>
>This form calls another form with the biz object that has subject associated with it. In the biz object OnStateChange method calls eventually Notify method of the subject, but I see that this method returns 0 for observer's count and therefore does nothing.
>
>I believe I set observer correctly on my main form, but it just does nothing.
>
>What could be a problem here?
>
>Thanks a lot in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform