BIG Problem with VNET

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Oct 15 18:00:01 CDT 2003


on 10/15/03 15:40, SoftIl at softil at onlinehome.de wrote:

> Hi Ruslan,
> I've got an very big problem with the current version of VNET.
> Here is a small example handler for demonstrate the problem:
> 
> private void button1_Click(object sender, System.EventArgs e)
> {
> VNET.Valentina.Init(6 * 1024 * 1024, "VNET-9914-1543-7597");
> VNET.VDatabase _db;
> int _counter = 0;
> while (true)
> {
> try
> {
>  _db = new VNET.VDatabase();
>  _db.Open("stammdaten");
>  _db.Flush();
>  _db.Close();
>  _db.Dispose();
>  //_db = null;
>  _counter++;
> }
> catch (Exception _ex)
> {
>  MessageBox.Show("ATTENTION!! An exception has appeared. : \n"+_ex.Message+"\n
> Counter:"+_counter.ToString());
>  break;
> }
> }
> VNET.Valentina.Shutdown();
> }
> 
> 
> After exact 5 times, the line " _db = new VNET.VDatabase();" create an
> exception: "The object reference was not fixed to an object authority."
> I think there is an big mistake in the Dispose methode. The _db object
> wouldn't correctly destroyed. Only the handle will be set to null, but the
> object still exist.
> 
> With this error I can't work with my current Projekt!!
> Please check this problem.

Carsten, Can you send me this test project ?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list