EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP > EQ2Map Troubleshooting

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 08-18-2005, 02:37 PM
Ruddles Ruddles is offline
A small badger.
This person is a EQ2Map developer.
 
Join Date: Apr 2005
Server: Splitpaw
Posts: 86
Default Small code fix

Have a small fix to stop people opening up 2 instances of the updater up at the same time, thus stopping people (in theory) getting the "access is denied" error because the file is already locked:

In Public Sub New() under the comment "'Add any initialization after the InitializeComponent() call":

Code:
Dim gotit As Boolean
Dim mut As New Mutex(True, "EQ2UpdateMut", gotit)
This creates a Mutex that is locked til the program ends. If you start another instance of it up then it tried to get access to this mutex, can't, and exits nicely with "1 instance" error message.
Reply With Quote
  #2  
Unread 08-18-2005, 03:03 PM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

thanks this is much simpler than the way i was doing it...and it always works

sorry for not having so much knowledge of vb.net to know this but that should change this year when i start college getting my computer science degree. thanks again for the info; I would love to hear any other suggestions from you if you have them.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #3  
Unread 08-18-2005, 04:14 PM
Ruddles Ruddles is offline
A small badger.
This person is a EQ2Map developer.
 
Join Date: Apr 2005
Server: Splitpaw
Posts: 86
Default

No probs. You've done a great job with the updater for someone who doesn't know VB.NET (you've done a great job with it for someone who does too). I currently develop C# for a large company and I wouldn't want to undertake something like the updater as a first project. Usually people just go for a "hello world" program
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:25 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI