Re: [Mono-dev] Gnome.Vfs Initialization

2005-11-18 Thread Felipe Almeida Lessa
2005/11/18, Buderya Roshan [EMAIL PROTECTED]:
 That works. Thanks a lot. I still have one doubt. When I call
 Gnome.Vfs.Vfs.Shutdown, Is only my application affected or is the effect
 global? What I mean to say is that if there are 2 programs using
 Gnome.Vfs and one of the calls Vfs.Shutdown while the other is stil
 executing, will the second program be adversly affected?  I think not,
 but wanted to confirm nevertheless.

No. You can imagine the problems that would appear if things were like
that ;-). It just disposes the structures it had on memory for your
application.

 Many thanks,
 Roshan

You're welcome,
Felipe.


--
Quem excele em empregar a força militar subjulga os exércitos dos outros
povos sem travar batalha, toma cidades fortificadas dos outros povos sem as
atacar e destrói os estados dos outros povos sem lutas prolongadas. Deve
lutar sob o Céu com o propósito primordial da 'preservação'. Desse modo suas
armas não se embotarão, e os ganhos poderão ser preservados. Essa é a
estratégia para planejar ofensivas.

  -- Sun Tzu, em A arte da guerra
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gnome.Vfs Initialization

2005-11-17 Thread Mike Kestner
On Thu, 2005-11-17 at 04:48 -0700, Buderya Roshan wrote:

 Before we can use Gnome.Vfs APIs to read remote files, do we need to
 initialize it? If so which API is used? I didn't find a suitable API in
 monodoc. Any help is appreciated.

Are you doing a Gtk.Application.Init?  That seems to be all that
sample/TestVfs does.

-- 
Mike Kestner [EMAIL PROTECTED]

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gnome.Vfs Initialization

2005-11-17 Thread Felipe Almeida Lessa
2005/11/17, Mike Kestner [EMAIL PROTECTED]:
 On Thu, 2005-11-17 at 04:48 -0700, Buderya Roshan wrote:

  Before we can use Gnome.Vfs APIs to read remote files, do we need to
  initialize it? If so which API is used? I didn't find a suitable API in
  monodoc. Any help is appreciated.

 Are you doing a Gtk.Application.Init?  That seems to be all that
 sample/TestVfs does.

AFAIK, you should do:

 Gnome.Vfs.Vfs.Initialize();

on the beginning of your application and:

 Gnome.Vfs.Vfs.Shutdown();

in the end. Note that the first Vfs is the namespace, while the
second is the Class.

But I may be wrong.

Cya,
Felipe.

--
Quem excele em empregar a força militar subjulga os exércitos dos outros
povos sem travar batalha, toma cidades fortificadas dos outros povos sem as
atacar e destrói os estados dos outros povos sem lutas prolongadas. Deve
lutar sob o Céu com o propósito primordial da 'preservação'. Desse modo suas
armas não se embotarão, e os ganhos poderão ser preservados. Essa é a
estratégia para planejar ofensivas.

  -- Sun Tzu, em A arte da guerra
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Gnome.Vfs Initialization

2005-11-17 Thread Buderya Roshan
 Felipe Almeida Lessa [EMAIL PROTECTED] 11/18/05 1:44 AM 
2005/11/17, Mike Kestner [EMAIL PROTECTED]:

 Are you doing a Gtk.Application.Init?  That seems to be all that
 sample/TestVfs does.

Iam doing a standalone executable which needs to read/write to remote
shares.

 AFAIK, you should do:

 Gnome.Vfs.Vfs.Initialize();

 on the beginning of your application and:

 Gnome.Vfs.Vfs.Shutdown();

 in the end. Note that the first Vfs is the namespace, while the
 second is the Class.

That works. Thanks a lot. I still have one doubt. When I call
Gnome.Vfs.Vfs.Shutdown, Is only my application affected or is the effect
global? What I mean to say is that if there are 2 programs using
Gnome.Vfs and one of the calls Vfs.Shutdown while the other is stil
executing, will the second program be adversly affected?  I think not,
but wanted to confirm nevertheless.

Many thanks,
Roshan
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list