Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: Outof memory exception creating a thumbnail Pin
Luc Pattyn31-Mar-10 12:29
sitebuilderLuc Pattyn31-Mar-10 12:29 
GeneralRe: Outof memory exception creating a thumbnail Pin
Mycroft Holmes31-Mar-10 12:58
professionalMycroft Holmes31-Mar-10 12:58 
QuestionPointToScreen and multiple monitors Pin
vlasto7731-Mar-10 1:18
vlasto7731-Mar-10 1:18 
AnswerRe: PointToScreen and multiple monitors Pin
V.31-Mar-10 3:03
professionalV.31-Mar-10 3:03 
GeneralRe: PointToScreen and multiple monitors Pin
vlasto7731-Mar-10 3:14
vlasto7731-Mar-10 3:14 
GeneralRe: PointToScreen and multiple monitors Pin
V.31-Mar-10 3:26
professionalV.31-Mar-10 3:26 
QuestionHow to Save/Store non serializable objects Pin
Anindya Chatterjee31-Mar-10 1:06
Anindya Chatterjee31-Mar-10 1:06 
AnswerRe: d How to Save/Store non serializable objects Pin
Keith Barrow31-Mar-10 1:17
professionalKeith Barrow31-Mar-10 1:17 
Anindya Chatterjee wrote:
One thing is not clear to me, if the object is not serializable then how come it is being transferred through the web service?


Probably, the EmailMessage isn't the thing being passed across the wire.


Anindya Chatterjee wrote:
Secondly, do any one have any idea on how to store this non serializable object into disk.


Two options (but I don't know the details of EMailMessage, so take with a pinch of salt:

a) Make a serializeable object and write a converter to convert bewteen this andEmailMessage
b) Hand-serialize the object from its properties etc.


That said, the object you have probably contains alot of information needed at runtime and have security implications (which are probably two of the reasons why the object is not marked as serializable). Given there are lots of readonly properties, you won't be able to deserialize EMailMessage, but if you are just interested in storing and retrieving the contents you should be fine.
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.

AnswerRe: How to Save/Store non serializable objects Pin
Bernhard Hiller31-Mar-10 2:16
Bernhard Hiller31-Mar-10 2:16 
QuestionThousand Seperator Pin
Sasmi_Office31-Mar-10 0:53
Sasmi_Office31-Mar-10 0:53 
AnswerRe: Thousand Seperator Pin
#realJSOP31-Mar-10 1:50
mve#realJSOP31-Mar-10 1:50 
AnswerRe: Thousand Seperator Pin
Eddy Vluggen31-Mar-10 1:55
professionalEddy Vluggen31-Mar-10 1:55 
QuestionPrevent access to directory Pin
Maddie from Dartford31-Mar-10 0:26
Maddie from Dartford31-Mar-10 0:26 
AnswerRe: Prevent access to directory Pin
Calla31-Mar-10 1:25
Calla31-Mar-10 1:25 
AnswerRe: Prevent access to directory Pin
Maddie from Dartford31-Mar-10 2:12
Maddie from Dartford31-Mar-10 2:12 
GeneralRe: Prevent access to directory Pin
#realJSOP31-Mar-10 2:22
mve#realJSOP31-Mar-10 2:22 
GeneralRe: Prevent access to directory Pin
Maddie from Dartford31-Mar-10 3:02
Maddie from Dartford31-Mar-10 3:02 
GeneralRe: Prevent access to directory Pin
#realJSOP31-Mar-10 11:48
mve#realJSOP31-Mar-10 11:48 
QuestionRe: Prevent access to directory Pin
Calla31-Mar-10 3:10
Calla31-Mar-10 3:10 
AnswerRe: Prevent access to directory Pin
Maddie from Dartford31-Mar-10 5:19
Maddie from Dartford31-Mar-10 5:19 
GeneralRe: Prevent access to directory Pin
Calla31-Mar-10 20:49
Calla31-Mar-10 20:49 
QuestionWindows Mobile 6 zooming in a picturebox Pin
Tripwire99930-Mar-10 23:25
Tripwire99930-Mar-10 23:25 
AnswerRe: Windows Mobile 6 zooming in a picturebox Pin
Ashraf ELHakim26-Jun-10 13:05
Ashraf ELHakim26-Jun-10 13:05 
QuestionShowing and interact with HTML-Pages without WebBrowser Control? Pin
softwarejaeger30-Mar-10 21:40
softwarejaeger30-Mar-10 21:40 
AnswerRe: Showing and interact with HTML-Pages without WebBrowser Control? Pin
Abhinav S30-Mar-10 21:45
Abhinav S30-Mar-10 21:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.