Member Avatar

Hello all, I am new to Glut, and I have made a program in C to draw lines and triangle using bresenham algorithm. But, when i run the code, the display function is called 3 times automatically. I want it to run only once. If I give input for one line, it takes garbage values 2 more times. Any ideas would be very helpful. Thanks.

Member Avatar
0
5
Member Avatar

So I'm uploading multiple images to a folder and inserting the images information to a database. The upload and insert is working great but the loop is running twice for each file and adding the information into the databse twice. I am unsure as to why this is happening. Please help. Here is my code. Protected Sub btnUploadAll_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUploadAll.Click If Session("RefNO") = "" Then generateRefNo() End If Dim myConnection As SqlConnection = New SqlConnection(ConfigurationManager.AppSettings("ConnectionString")) Dim myCommand As SqlCommand = New SqlCommand("Insert_Stud_Stock_Images", myConnection) ' Mark the Command as a SPROC myCommand.CommandType = CommandType.StoredProcedure …

Member Avatar
0
6

The End.