Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn22-Jan-16 4:40
sitebuilderLuc Pattyn22-Jan-16 4:40 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl22-Jan-16 8:58
mavl22-Jan-16 8:58 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn22-Jan-16 9:10
sitebuilderLuc Pattyn22-Jan-16 9:10 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl22-Jan-16 23:15
mavl22-Jan-16 23:15 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
Luc Pattyn23-Jan-16 0:43
sitebuilderLuc Pattyn23-Jan-16 0:43 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl23-Jan-16 2:49
mavl23-Jan-16 2:49 
AnswerRe: ICustomMarshaler not returning an Out parameter Pin
Gerry Schmitz21-Jan-16 16:03
mveGerry Schmitz21-Jan-16 16:03 
GeneralRe: ICustomMarshaler not returning an Out parameter Pin
mavl21-Jan-16 23:32
mavl21-Jan-16 23:32 
I have seen that page, and in my opening post you can see I use a class DataBlob which actually works exactly as that article describes.

I just changed it to a class so I can use a destructor. The reason I wanted an ICustomMarshaler is that I was using this as a testproject and I also wanted to implement IDisposable correctly. The problem that arose was that I couldn't use a bool IsDisposed as the Marshaler also marshals that boolean into the unmanaged struct, which is very unwanted. Sadly there isn't an attribute which you can use which tells the marshaler "ignore this field".
ICustomMarshaler keeps all the unmanaged memory in the hands of the ICustomMarshaler, and also cleans it up. No need for a destructor or dispose, and I can choose myself which fields I want to bring over and which not.
QuestionHow to redirect the weburl to particular country when user types in Browser. Pin
pradeep yajamanam21-Jan-16 1:52
pradeep yajamanam21-Jan-16 1:52 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Dave Kreskowiak21-Jan-16 4:54
mveDave Kreskowiak21-Jan-16 4:54 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Richard MacCutchan21-Jan-16 5:03
mveRichard MacCutchan21-Jan-16 5:03 
AnswerRe: How to redirect the weburl to particular country when user types in Browser. Pin
Gerry Schmitz21-Jan-16 8:34
mveGerry Schmitz21-Jan-16 8:34 
Questiongetting country from phone number Pin
Asrour20-Jan-16 10:46
Asrour20-Jan-16 10:46 
AnswerRe: getting country from phone number Pin
Richard Andrew x6420-Jan-16 11:32
professionalRichard Andrew x6420-Jan-16 11:32 
GeneralRe: getting country from phone number Pin
Asrour20-Jan-16 11:40
Asrour20-Jan-16 11:40 
GeneralRe: getting country from phone number Pin
Richard Deeming21-Jan-16 2:20
mveRichard Deeming21-Jan-16 2:20 
GeneralRe: getting country from phone number Pin
PIEBALDconsult20-Jan-16 11:59
mvePIEBALDconsult20-Jan-16 11:59 
GeneralRe: getting country from phone number Pin
Asrour20-Jan-16 12:01
Asrour20-Jan-16 12:01 
SuggestionRe: getting country from phone number Pin
Sascha Lefèvre20-Jan-16 12:08
professionalSascha Lefèvre20-Jan-16 12:08 
GeneralRe: getting country from phone number Pin
Asrour20-Jan-16 12:21
Asrour20-Jan-16 12:21 
GeneralRe: getting country from phone number Pin
Sascha Lefèvre20-Jan-16 12:26
professionalSascha Lefèvre20-Jan-16 12:26 
GeneralRe: getting country from phone number Pin
Asrour20-Jan-16 12:31
Asrour20-Jan-16 12:31 
GeneralRe: getting country from phone number Pin
Sascha Lefèvre20-Jan-16 12:37
professionalSascha Lefèvre20-Jan-16 12:37 
AnswerRe: getting country from phone number Pin
jschell22-Jan-16 13:48
jschell22-Jan-16 13:48 
QuestionString Formatting / Interpolation --- Opinions Pin
Sascha Lefèvre20-Jan-16 3:59
professionalSascha Lefèvre20-Jan-16 3:59 

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.