nicknystrom / RedBranch.Hammock

No longer maintained, active fork is at:
https://github.com/DamianMac/Hammock
GNU General Public License v3.0
0 stars 0 forks source link

Large Attachment Support #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The current attachment code reads an entire stream into a byte array, which 
consumes as much RAM as the file size.  For large attachments this can be 
undesirable.  I believe I have a fix, using stream copying, temp files, etc. 
and I'm willing to share, but the current code won't build in VS2010 so I can't 
test it.  Also I can't override the AttachFile method in my code because it 
isn't marked virtual.

The three errors I get when trying to build are:
Error   2   An object reference is required for the non-static field, method, or 
property 
'RedBranch.Hammock._LazyReference<TEntity>._sx' C:\Users\sblosser\Documents\Pers
onal\Programming\Libraries\relax-net\RedBranch.Hammock\Reference.cs 81  67  RedBra
nch.Hammock

Error   3   An object reference is required for the non-static field, method, or 
property 
'RedBranch.Hammock._LazyReference<TEntity>._id' C:\Users\sblosser\Documents\Pers
onal\Programming\Libraries\relax-net\RedBranch.Hammock\Reference.cs 81  85  RedBra
nch.Hammock

Error   4   An object reference is required for the non-static field, method, or 
property 
'RedBranch.Hammock._StrongReference<TEntity>._entity'   C:\Users\sblosser\Document
s\Personal\Programming\Libraries\relax-net\RedBranch.Hammock\Reference.cs   113 74
    RedBranch.Hammock

Original issue reported on code.google.com by stan.blo...@gmail.com on 24 Dec 2011 at 3:57

GoogleCodeExporter commented 9 years ago
I had the same problem and I think if you remove the underscores from sx, id 
and entity it will build.

Original comment by youwontf...@gmail.com on 29 Dec 2011 at 8:56

GoogleCodeExporter commented 9 years ago
To stan.blo...@gmail.com : could you please publish your patch? Facing the same 
issue :)

Original comment by wizzard0@gmail.com on 11 Jan 2012 at 10:17