Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


3 threads

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Sun Aug 19, 2012 6:56 am    Post subject: 3 threads Reply with quote

Hello,

I'm coding my own little game, which has 3 threads, the GUI thread, game logic thread and the packet recv thread. I'm coding this in C#. I believe the best thing I could do is to somehow make the Game it's Thread know that it has to do something, wether it's from the user or from a packet.

I've tried the follow code (which i know FAILS in all ways, I was just trying. Never did this before)

Except that it does not work and crashes I use the Thread.Resume() which should not be used anymore.

Code:

Code I could not show here, cause of words I guess?

http://pastebin.com/Ep58X53L


But I can't figure out what I should do?

So if someone could help me, Very Happy

Grz

EDIT: Fixed code
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Aug 26, 2012 2:34 am    Post subject: Reply with quote

In case you are still wondering about this topic; perhaps look into events to single things across each thread.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites