Pausing threads

Miscellaneous Forums/General Discussion/Pausing threads

I've got this little bit of code I want to implement to pause the threads of a remote process. It works for me on everything I try it on, I wondered if others could please try it.

http://indiepath.com/tim/pausep.rar

It's a commandline application, you type pausep and it wil list the running processes with thier PID. To pause a process type "pausep [PID]" to resume that process type "pausep [PID] /r"

Please don't attempt to pause a system file, use it on a game or something...

Thanks and I look forward to your feedback.

Tim.

It worked on the stuff I tried it on. I forgot how to resume when I tried it on firefox though so that was a bit stupid of me.

Thanks :)

I couldn't get it to work - sniff - although, I tried running it from the Command Prompt.

What did not work puki? the .exe or the pausing?

The actual exe.

The PC I am using at the moment is WindowsXP SP2 with an AMD 64bit CPU. It says 'The system cannot execute the specified program'.

Sniff.

Hmm. I get the same as puki.

Like puki, I also couldn't run the first *cough* Aurora demo recently. Full Metal Conflict I think. Looks like we're in the same boat. I wonder what's the common factor. What are your specs puki? Maybe there's a common bit of hardware we're using causing the problem.

The command set is compatible with 95,98,ME,XP,2000 and 2003. So I am unsure why this is failing, it's a valid win32 application as I just compiled it :(

Ho hum.

I even renamed it 'puki' to try and get it going, but it is not having any of it - I'll cut of a chunk of cheese and try coaxing it - I think the little fellar is just a bit shy - not sure about his new home - I'll try the old warm saucer of milk as well - perhaps get a blanket too - let him get his common scent on it and make it a bit more like home.

Wait a minute - "puki" is homing in on the answer here - what version of .NET Framework is everyone running?

lol, a sausage might just do the trick.

EDIT - Framework 1.1, installing 2.0 now

Mines 2.0.

I have disassembled the exe - this thing is referencing MSVCR80D.dll.

Which reminds me of this:

http://www.blitzbasic.com/Community/posts.php?topic=60232#671951


I wonder if this is anything to do with it?

http://blogs.msdn.com/nikolad/articles/427101.aspx

Count me out. I'm due for a reinstall I think. Can't even remove .Net 1.1 for some reason.

Good Ole M$. I'll attempt to rebuild with Min Dependencies.

its a screaming nightmare are side by side dll's, you can get rid of the dependency for an exe but seemingly not for a dll
(I just "upgraded" back to vc7.1 toolkit and codeblocks in the end)

off the top of my head I cant remember what the option is called, but side-by-side dll's are mentioned in the linking options.