Well I'm trying to run 2 instances of the same multiplayer game. I can accomplish the same result by running each instance in a different virtualpc, but that seems like to much overhead.
Type: Posts; User: klmdb
Well I'm trying to run 2 instances of the same multiplayer game. I can accomplish the same result by running each instance in a different virtualpc, but that seems like to much overhead.
I'm not really looking for ways to make sure only one instance of a program can be ran, rather than ways to bypass it.
Good idea, but you were right; it didn't work. Any ideas of how I could bypass it anyway?
I'm not sure if this is the right place to ask this, but does anyone know if it is possible to disable a program from seeing the process tree?
I have a program that I can only run one instance of....
UPDATE: I found out what the problem was: I was running the VS builder in 'release' mode instead of 'debug' mode. This screwed up the values I saw while debugging.
The algorithm is still buggy...
@Salem:
I trimmed the source so thet I don't call any function that frees any memory before trying to call SimAnAlgorithm_run() & it didn't solve the problem.
@dmh2000:
SimAnAlgorithm.c has...
anyone please? this project is due in two days...
ok so I couldn't get the board attachement to work so I uploaded it here:
http://www.opaalkust.com/Download/project%20AD3.rar
Run it and the command window will ask for your input. Enter this:...
Damnit, it's back! clean/rebuild doesn't seem to help... Any other ideas? Do you need more of my code to find it?
ok, thank you for the help!
I include a header file that defined the method.
I'm working in VS 2010 so shouldn't be a problem
I'm using calloc, but I think I freed everything properly. Haven't got the time to veryfy...
I'm writing C; I'm using tons of functions with similar build though (EDIT and these have all been tested and work). For example
struct AlgorithmHandler_Nucleotide *...
I can't see what's wrong with this?
int restartPropability){
')' to close the argument list, '{' to start the method body
srry which line do you mean? I think I need a break; I can't even find it when people point it out to me...
I use this method to run my Simulated Annealing algorithm:
struct AlgorithmHandler_Critter * SimAnAlgorithm_run(
struct AlgorithmHandler_Settings * settings,
int...
ok, I thought I'd forgotten someting having to do with EOS. Thx!
Could anyone explain to me what I am doing wrong here please?
void testFree(){
char * s=(char *)calloc(sizeof(char),5);
sprintf(s, "[%d]",321);
printf(s);
free(s);
return;
}
I found the bug! I modified the supplied delegate/invoke code to this:
private delegate void CrossThreadLabelHandler(Label obj, String str);
private void UpdateLabelText(Label...
I updated my code:
private delegate void CrossThreadLabelHandler(Label obj, String str);
private void UpdateLabelText(Label obj, String str)
{
if...
PS this is an example I built, but it doesn't work. My debugger says"Cross-thread operation not valid: Control 'label1' accessed from a thread other than the thread it was created on."
Any clues...
--- SOLVED ---
original post:
Progress:
I wrote an example code for the proposed example but can't get it to work. As sugested I used a cross thread controler to fix the thread access...
@Bayint Naung:
I didn't think the malloc cast was necessary, but it's done the same way in some of the examples we got in class.
And you were right about the init() function :)
Now I've been...
jay!! that seems to be what the teach' is talking about :)
Thx alot, I can't believe I wasted like 6-7 hours on that one :s
implementation of part 1:
#include "general.h"
#include "LinkedList.h";
#include "LinkedListEntry.h";
/*
struct listhdr {
struct listhdr *prev, *next;
I did a couple of weeks ago when I was first working on this problem, but I lost my source. I'm doing it again right now, should be ready soon.
Last time I tried part 1 didn't seem to be the...