Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Mutex problems (Matrix1)

Author
Message
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Aug 2010 19:27
I have a problem where I cannot lock or unlock a Mutex.

In VB.net, I set up my Mutexes:




First is for DBP to lock, second is defaulted to being locked by VB

The VB app starts, and creates the Mutexes. Then it starts the DBP app, which amongst other things tries to create a lock it's Mutex...




It fails, but I can't unlock sysobj.

While this is happening, my VB program is "watching" for the DBP program to be activated:



My programs have failed during testing, and it's most likely that this has triggered the problem. However I'm concerned that a crash of my program may require a reboot to fix.

Can anyone give any advice on what I'm doing and how I should be doing it?

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Aug 2010 20:45
Quote: "However I'm concerned that a crash of my program may require a reboot to fix."

That shouldn't be a concern. When all programs that are attached to a mutex end, the mutex is released and destroyed even if you don't carry out a final unlock.

I'll try to help, but remember the level of (non) experience I have with .NET.

1. Do you have the latest release of my plug-ins? I recall making changes to the mutexes plug-in around a year ago.
2. If you test a VB program against another VB program, can you get it to work?

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Aug 2010 09:12
Ah yes, 4th July 2009:

Quote: "Matrix1Util_03 - 1.1.0.4
-- Owned mutexes are released on a program exit.
-- Added IS SYSOBJ LOCKED function.
-- Minor code tidying"


I have a 2008 release, thanks Ian

Login to post a reply

Server time is: 2026-07-25 17:49:08
Your offset time is: 2026-07-25 17:49:08