This is a migrated thread and some comments may be shown as answers.

[Solved] IInstanceCallbacks work in Debug but NOT in RunTime application

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrey
Top achievements
Rank 1
Andrey asked on 18 Mar 2011, 09:53 PM

Hello Telerik Team!

Maybe it is not possible, but it seems it is a real situation.

I have an entity, which realizes IInstanceCallbacks.

But Method PostLoad() (where I initialize my [Transient] fields) is called only if I run my application in Debug (step-by-step mode with breakpoint in PostLoad() method)

But when I run .exe file or debug but without any breakpoints (only in PostLoad() method) - PostLoad() isn't called!!! And my [Transient] fields are empty.

Does anybode ask me what a problem?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 21 Mar 2011, 09:57 AM
Hi Andrey,
PostLoad is called after the data is loaded from the database. In debug, esp. if you look at the persistent properties, this might be fired by the watch window. If you do not debug, what happens if you touch a normal field first?

Best wishes,
Jan Blessenohl
the Telerik team
Tags
General Discussions
Asked by
Andrey
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or