Help! Some unknown error during Compiling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vikas Sihag
    New Member
    • Jun 2007
    • 1

    Help! Some unknown error during Compiling

    The Code Given Below is woring correctly during debug.
    But does not work during compiling, It doesn't even shows an error.
    [code=cpp]
    private void pictureBox1_Mou seUp(object sender, MouseEventArgs e)
    {
    ep.X =e.X;
    ep.Y =e.Y;
    }
    private void pictureBox1_Pai nt(object sender, PaintEventArgs e)
    {
    Pen p=new Pen(Color.Black ,2);
    Graphics g = e.Graphics;
    g.DrawLine(p,sp .X,sp.Y,ep.X,ep .Y);
    }

    private void pictureBox1_Mou seDown(object sender, MouseEventArgs e)
    {
    sp.X =MousePosition. X;
    sp.Y = MousePosition.Y ;
    }[/code]
    Last edited by Frinavale; Jun 26 '07, 05:41 PM. Reason: adding [code] tags to make more legible
  • TRScheel
    Recognized Expert Contributor
    • Apr 2007
    • 638

    #2
    Originally posted by Vikas Sihag
    The Code Given Below is woring correctly during debug.
    But does not work during compiling, It doesn't even shows an error.

    private void pictureBox1_Mou seUp(object sender, MouseEventArgs e)
    {
    ep.X =e.X;
    ep.Y =e.Y;
    }
    private void pictureBox1_Pai nt(object sender, PaintEventArgs e)
    {
    Pen p=new Pen(Color.Black ,2);
    Graphics g = e.Graphics;
    g.DrawLine(p,sp .X,sp.Y,ep.X,ep .Y);
    }

    private void pictureBox1_Mou seDown(object sender, MouseEventArgs e)
    {
    sp.X =MousePosition. X;
    sp.Y = MousePosition.Y ;
    }

    When you say compiling, do you mean in the release version? And how are you using the release exe, if this is the case? Sometimes copy/pasting to a computer will not work, sometimes it will.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Could you explain a little more on what its doing that indicates it is not working?
      Is it failing on the compile?
      Did it compile and wont run?
      ?

      Comment

      Working...