Click here to Skip to main content
15,510,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for a WCF host Pin
PIEBALDconsult28-Mar-12 15:01
professionalPIEBALDconsult28-Mar-12 15:01 
GeneralRe: Looking for a WCF host Pin
L Viljoen28-Mar-12 20:14
professionalL Viljoen28-Mar-12 20:14 
AnswerRe: Looking for a WCF host Pin
jschell28-Mar-12 13:49
jschell28-Mar-12 13:49 
GeneralRe: Looking for a WCF host Pin
L Viljoen28-Mar-12 20:17
professionalL Viljoen28-Mar-12 20:17 
GeneralRe: Looking for a WCF host Pin
jschell29-Mar-12 8:58
jschell29-Mar-12 8:58 
Questionpassing array of doubles Pin
__John_28-Mar-12 3:57
__John_28-Mar-12 3:57 
AnswerRe: passing array of doubles Pin
BobJanova28-Mar-12 6:52
BobJanova28-Mar-12 6:52 
AnswerRe: passing array of doubles Pin
kevinnicol28-Mar-12 8:01
kevinnicol28-Mar-12 8:01 
I Suspect BobJanova is correct, but I just did some messing around with unsafe code and there is a possability that even though the wrapper is taking a double ref, it may be treating it as a pointer. Check this code out

C#
static void Main(string[] args)
{
    double[] testArr = new double[] { 1.0, 2.0, 3.0 };

    for (int i = 0; i < 3; i++)
        Console.WriteLine(testArr[i]);

    test(ref testArr[0]);

    for (int i = 0; i < 3; i++)
        Console.WriteLine(testArr[i]);
}

public static unsafe void test(ref double x)
{
    fixed (double* ptr = &x)
    {
        ptr[1] = 2.5;
    }
}


this produces the following instead of an error.
1
2
3
1
2.5
3


so there is a chance that simply passing a reference to the 0th index in the array might get what you want done. I don't have the wrapper setup to test it out myself.
GeneralRe: passing array of doubles Pin
BobJanova28-Mar-12 23:44
BobJanova28-Mar-12 23:44 
AnswerRe: passing array of doubles Pin
__John_29-Mar-12 0:06
__John_29-Mar-12 0:06 
GeneralRe: passing array of doubles Pin
DaveyM6929-Mar-12 3:46
professionalDaveyM6929-Mar-12 3:46 
AnswerRe: passing array of doubles Pin
Henry Minute29-Mar-12 5:38
Henry Minute29-Mar-12 5:38 
Questionruntime change into database Pin
Member 823360127-Mar-12 20:57
Member 823360127-Mar-12 20:57 
AnswerRe: runtime change into database Pin
Richard MacCutchan27-Mar-12 23:25
mveRichard MacCutchan27-Mar-12 23:25 
AnswerRe: runtime change into database Pin
Eddy Vluggen28-Mar-12 8:14
professionalEddy Vluggen28-Mar-12 8:14 
GeneralRe: runtime change into database Pin
Member 823360129-Mar-12 20:12
Member 823360129-Mar-12 20:12 
QuestionHow to make 64-bit registry writable in 32-bit application Pin
gshen27-Mar-12 14:55
gshen27-Mar-12 14:55 
AnswerRe: How to make 64-bit registry writable in 32-bit application Pin
Richard Andrew x6427-Mar-12 15:44
professionalRichard Andrew x6427-Mar-12 15:44 
GeneralRe: How to make 64-bit registry writable in 32-bit application Pin
gshen28-Mar-12 15:02
gshen28-Mar-12 15:02 
QuestionCopying/replacing a file in the system dir? Pin
Muammar©27-Mar-12 2:23
Muammar©27-Mar-12 2:23 
AnswerRe: Copying/replacing a file in the system dir? Pin
Pete O'Hanlon27-Mar-12 2:35
mvaPete O'Hanlon27-Mar-12 2:35 
GeneralRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 3:56
Vipin_Arora27-Mar-12 3:56 
AnswerRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 3:58
Vipin_Arora27-Mar-12 3:58 
AnswerRe: Copying/replacing a file in the system dir? Pin
Eddy Vluggen27-Mar-12 6:17
professionalEddy Vluggen27-Mar-12 6:17 
QuestionBypass Windows Message other than Open & Close Pin
varunpandeyengg26-Mar-12 23:25
varunpandeyengg26-Mar-12 23:25 

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.