locked
.net 2.0 sp2 specific method compile issue RRS feed

  • Question

  • I think I'm at the right place but if I'm not sorry...

    The problem is that I used WaitHandle. WaitAny(WaitHandle[] , Int32) which is a SP2 method while I should have used WaitHandle. WaitAny(WaitHandle[] , Int32, Boolean).

    My question is that if I was running only .net 2.0 WITHOUT SP2 would this have resulted in a compile error or only in runtime?

    I can't try to uninstall/install since I dont have does rights on this computer.

    Thanks for any answers :)

    //Dennis
    Monday, May 25, 2009 1:10 PM

Answers

  • It will be a compile issue.

    I have also faced a similar issue.

    In my machine i have .net 3.5 sp1 and it got a method
    AutoResetEvent.WaitOne(int32);
    The code compiled and built properly on my machine.

    Once my friend tried to compile the same code on this machine, he got a compile error because he has only .net 3.5 without sp1.



    Thanks,
    A.m.a.L
    .Net Goodies
    Remember to click "mark as answered" when you get a correct reply to your question
    • Marked as answer by bihel Monday, May 25, 2009 1:23 PM
    Monday, May 25, 2009 1:20 PM

All replies

  • It will be a compile issue.

    I have also faced a similar issue.

    In my machine i have .net 3.5 sp1 and it got a method
    AutoResetEvent.WaitOne(int32);
    The code compiled and built properly on my machine.

    Once my friend tried to compile the same code on this machine, he got a compile error because he has only .net 3.5 without sp1.



    Thanks,
    A.m.a.L
    .Net Goodies
    Remember to click "mark as answered" when you get a correct reply to your question
    • Marked as answer by bihel Monday, May 25, 2009 1:23 PM
    Monday, May 25, 2009 1:20 PM
  • thanks a lot for the quick answer

    //Dennis
    Monday, May 25, 2009 1:24 PM