Hi,
I'm creating a IDE for DC++ using Delphi and some libraries. This IDE will work directly with the Queue.xml.
Lets imagine that DC++ is opened and working normally. Then I open my program which opens the queue.xml file, then I do some changes (like altering some file priorities), then my program saves the changes to the Queue.xml file (remember that DC++ was opened and working normally).
My question : What happens with DC++ ? Will it crash ? (I hope not) I think DC++ will not know that the file has changed and when DC++ saves again I lose with changes in Queue.xml. Am I right ?
If I am right, I think maybe there's some way to make DC++ reload the Queue.xml without saving it again (because I want to keep the changes made with my program).
Thanks in advance
Jose Carlos
Brazil
Creating another IDE for DC++
Moderator: Moderators
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
Re: Creating another IDE for DC++
jcmarcussojr wrote:I think DC++ will not know that the file has changed and when DC++ saves again I lose with changes in Queue.xml. Am I right ?
Yes. The queue is held in memory and flushed to disk when it becomes dirty.
jcmarcussojr wrote:If I am right, I think maybe there's some way to make DC++ reload the Queue.xml without saving it again (because I want to keep the changes made with my program).
At what point should DC++ be reloading the queue? What makes you think your changes will not cause problems? DC++ is the process dealing with the transfers so it has the most up to date information about the state of the queue. Are you proposing that it ignore these and instead load yours?
-
jcmarcussojr
- Posts: 3
- Joined: 2003-04-27 14:33
HI.
thanks.
My idea is to use my program without any concurrencywith DC++.
I imagine something like this :
I go to DC++ and flushes the queue in the xml file. (at this point I make sure DC++ wil do nothing with the queue, like a global pause for DC++). Then I open my program with the queue.xml, do some changes and flushes it to the queue.xml file. Then I "wake up" DC++ to reload the xml file ('cause i have changed it) and DC++ continue to work normally.
Now, I already use my program, but I close DC++ every time to avoid crashes between DC++ and my program using the same file.
My idea is to use the most up to date info that DC++ has and to use some extra features I'm doing im my program.
Do u wanna to see this program I'm doing ? (it's still a beta
I pretend to share it when I finish it.
Jose Carlos
thanks.
My idea is to use my program without any concurrencywith DC++.
I imagine something like this :
I go to DC++ and flushes the queue in the xml file. (at this point I make sure DC++ wil do nothing with the queue, like a global pause for DC++). Then I open my program with the queue.xml, do some changes and flushes it to the queue.xml file. Then I "wake up" DC++ to reload the xml file ('cause i have changed it) and DC++ continue to work normally.
Now, I already use my program, but I close DC++ every time to avoid crashes between DC++ and my program using the same file.
My idea is to use the most up to date info that DC++ has and to use some extra features I'm doing im my program.
Do u wanna to see this program I'm doing ? (it's still a beta
I pretend to share it when I finish it.
Jose Carlos
-
GargoyleMT
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-08 02:46
- Location: .pa.us
Who is online
Users browsing this forum: Google [Bot] and 0 guests