Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not make subject / observer to work
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01378805
Message ID:
01378944
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform