We have an existing problem with our software:

We use Boo extensively to run custom business rules.   Everything
works fine until Boo encounters lazy loaded object. Then if you try to
create a variable in boo, for example myBooVaribleDepartmentLeader =
myCompany.MyLazyLoadedDepartmentLeader;
it fails with exception saying "can not make reference to transient
module .... ".

I do not remember the exact error message. Basically, what i have
understood and investigated, is that it tells that
MyLazyLoadedDepartmentLeader is a type loaded from in-memory assembly.
 And that causes problem.

So having an ability to change proxy generation strategy might help us
solve that. There is two possible ways (of which i am aware now):
1. In one or another way force proxy generator to first save assembly
to disk, and then load it to memory.
2. Pre-generate classes and load them from disk at startup time.

Please correct me if in any way i am wrong :)
Darius


2009/4/2 jnoody <[email protected]>:
>
> This is in reference to the new ability to choose your proxy
> implementation, description found here:
> http://nhforge.org/blogs/nhibernate/archive/2008/11/09/nh2-1-0-bytecode-providers.aspx
>
> Would someone mind elaborating as to why one would want to change the
> underlying proxy implementation?  I'm not suggesting that it's not
> nice or even necessary. I am simply trying to understand of what
> benefit this is?
>
> I've heard that an example can be seen in
> NHibernate.ByteCode.Castle.Tests, but I still don't understand after
> reviewing the code.
>
> Fabio suggested that one advantage is that those who use Castle with
> NH have the benefit of now having a circular reference, which I don't
> really understand.
>
> What are some of the major benefits, otherwise?
>
> Thank you.
> >
>



-- 
Darius Damalakas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to