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

C#

 
AnswerRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:01
mentorWendelius10-Aug-08 1:01 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:06
hdv21210-Aug-08 1:06 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:19
mentorWendelius10-Aug-08 1:19 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:49
hdv21210-Aug-08 1:49 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 2:13
mentorWendelius10-Aug-08 2:13 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 2:29
hdv21210-Aug-08 2:29 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 2:48
mentorWendelius10-Aug-08 2:48 
QuestionThreading while sharing a Graphics object Pin
JFord12349-Aug-08 23:25
JFord12349-Aug-08 23:25 
Hello,

This is my first post here Smile | :) I'm currently a high-school student learning C#.

I've made a small space-invaders/"blitz" video game.
The game is very simple, there's a group of aliens in the top of the screen, moving, and the player controls a space-ship that can shoot at the aliens.

After reading a few articles about threading I've decided that the easiest way for me to implement the moving of the aliens with the shootings and the space ship is to thread every operation, so every operation will have it's own timer (Actually a while loop with a Thread.Sleep())

I did that, but I'm getting an "InvalidOperationException - Object currently in use" from the methods that are trying to draw into the Graphics of the form, sometimes after firing a shot.
This is after using an AutoResetEvent, I've made sure that drawing to the graphics of the form occures in turns. But I'm still getting the error.

So I was wondering if anyone has a suggestion for me, even if it's without threading. I'm pretty sure I've used the ResetEvent on all the drawings. What causes the "object in use" other than drawing to it?

Thanks and sorry for the long post - I tend to write a lot. I hope I was clear - English isn't my mother language.

Uri.
AnswerRe: Threading while sharing a Graphics object Pin
Christian Graus10-Aug-08 0:50
protectorChristian Graus10-Aug-08 0:50 
GeneralRe: Threading while sharing a Graphics object Pin
JFord123410-Aug-08 0:54
JFord123410-Aug-08 0:54 
GeneralRe: Threading while sharing a Graphics object Pin
Christian Graus10-Aug-08 2:07
protectorChristian Graus10-Aug-08 2:07 
GeneralRe: Threading while sharing a Graphics object Pin
JFord123410-Aug-08 2:55
JFord123410-Aug-08 2:55 
GeneralRe: Threading while sharing a Graphics object Pin
Guffa10-Aug-08 5:09
Guffa10-Aug-08 5:09 
QuestionReading the SMTP Configurations Pin
hadad9-Aug-08 23:24
hadad9-Aug-08 23:24 
QuestionHow to save DataSet to exist MDB file? Pin
Admin8879-Aug-08 23:14
Admin8879-Aug-08 23:14 
AnswerRe: How to save DataSet to exist MDB file? Pin
Christian Graus10-Aug-08 0:51
protectorChristian Graus10-Aug-08 0:51 
QuestionRead Large File Pin
Reza Shojaee9-Aug-08 20:27
Reza Shojaee9-Aug-08 20:27 
AnswerRe: Read Large File Pin
Guffa9-Aug-08 22:23
Guffa9-Aug-08 22:23 
GeneralRe: Read Large File Pin
Reza Shojaee9-Aug-08 23:25
Reza Shojaee9-Aug-08 23:25 
GeneralRe: Read Large File Pin
User 665810-Aug-08 0:22
User 665810-Aug-08 0:22 
GeneralRe: Read Large File Pin
#realJSOP10-Aug-08 1:08
mve#realJSOP10-Aug-08 1:08 
GeneralRe: Read Large File Pin
Guffa10-Aug-08 6:55
Guffa10-Aug-08 6:55 
AnswerRe: Read Large File [modified] Pin
#realJSOP10-Aug-08 1:16
mve#realJSOP10-Aug-08 1:16 
AnswerRe: Read Large File Pin
Reza Shojaee10-Aug-08 2:11
Reza Shojaee10-Aug-08 2:11 
GeneralRe: Read Large File Pin
Mohammad Dayyan10-Aug-08 4:25
Mohammad Dayyan10-Aug-08 4: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.