It's nice to know someone else's mind works like mine does. I have no
answers for you, but if memory serves me, I believe in the old DOS Oasis,
when you created a database, the manual recommended you enter 2 users for
the database, you and the computer. I suspect superuser is related to this
somehow but don't quote me. Meanwhile, I'm having my own troubles. Perhaps
you or anyone else out there can help me. Below is a portion of my GX code.
I have one channel, called 's' that I loaded into hVVs. hVVs is declared as
a REAL VV. In the for loop, I set hVVt, that I previously created and also
delcared as a REAL VV, to a math expression involving hVVs. For testing
purposes, I simply set hVVt to 3.0. When I run the GX, I know it run's
through completely becuase I get to the 'DONE' message at the end. If the
channel 't' previously existed, nothing in the channel changes. If I then
run another GX, such as  refid.gx, upon completion of the refid gx, channel
't' is suddenly filled with 3.0 's. I've been messing around with locking
and unlocking hChant in different permutations but  I can't figure out the
problem.



   iVVlength = iLength_VV(hVVs);

   for (i=1; i<=iVVlength; i++)
      SetReal_VV(hVVt, i, 3.0);

   if (iExistSymb_DB(hDB, "t", DB_SYMB_CHAN) == 0)
      hChant = CreateSymb_DB(hDB, "t", DB_SYMB_CHAN, DB_OWN_SHARED,
DB_CATEGORY_CHAN_FLOAT);
   else
      hChant = FindSymb_DB(hDB, "t", DB_SYMB_CHAN);

   LockSymb_DB(hDB, hChant, DB_LOCK_READWRITE, DB_WAIT_INFINITY);

   PutChanVV_DB(hDB,hLine,hChant,hVVt);

   UnLockSymb_DB(hDB, hChant);

   Abort_SYS("DONE");
}



Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]
----- Original Message -----
From: Marc Pelletier <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 02, 2000 8:47 AM
Subject: Re: [gxnet]: CreateSyumb_DB


> At 09:00 AM 02 06 00 -0700, Aaron Balasch wrote:
> >What is the meanings and of DB_OWN_SHARED and DB_OWN_USER and which
should I use?
>
>
> That's a good question. I have two others,
>
> What's the difference between DB_WAIT_NONE and DB_WAIT_INFINITY? ( I
know, -1) : )
>
> What's this super user stuff in Create_DB?
>
> It seems there is some security stuff which has been designed in but never
really implemented.
>
> cheers
>
> Marc
>
>
>
>
> --------------------------------------------------------------------------
-
> Data Donkey - Geophysical Data Processing, Consulting and Software
Development
>                 Creator of the POWER TOOLBOX utilities for OASIS montaj
> contact: mailto:[EMAIL PROTECTED]  tel (306) 931-6853 or
http://www.datadonkey.com
>
> _______________________________________________________
> More mailing list info http://www.geosoft.com/support/listserv/index.html

_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html

Reply via email to