Creating another IDE for DC++

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

jcmarcussojr
Posts: 3
Joined: 2003-04-27 14:33

Creating another IDE for DC++

Post by jcmarcussojr » 2003-12-05 12:36

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

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 19:37

Re: Creating another IDE for DC++

Post by TheParanoidOne » 2003-12-05 13:14

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?
The world is coming to an end. Please log off.

DC++ Guide | Words

jcmarcussojr
Posts: 3
Joined: 2003-04-27 14:33

Post by jcmarcussojr » 2003-12-05 13:45

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

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-12-05 17:48

It sounds like you need to write code and contribute it to DC++ for your program to work the way you expect it.

:)

(And I think you mean GUI, not IDE... )

Who is online

Users browsing this forum: Google [Bot] and 0 guests