Title: Message
Aaron:
 
See if you have either of the following files:
 
precomp_all.gxh
predef_all.gxh
 
If yes, try backing them up/ moving them to a different directory and delete the originals.
 
These are "precompiled" header files, that are used to speed up the compilation of GXs, and if they are still around, your changes to db.gxh will be ignored. Deleting them forces the GX compiler to read through all the different header files each time, and so takes a bit longer.
 
Also be sure that you don't have different copies of db.gxh anywhere else.
 
This error has nothing to do with locking or unlocking the database...
 
Stephen
-----Original Message-----
From: skyhunter [mailto:[EMAIL PROTECTED]]
Sent: December 4, 2002 3:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [gxnet]: iChansMax_DB()

Hi Stephen,
 
I modified my db.gxh file like you said but I still get the same result. I'll try locking the database before the iChansMax operation, but I don't believe that will work.
 
Aaron
 
 
----- Original Message -----
Sent: Wednesday, December 04, 2002 12:49 PM
Subject: RE: [gxnet]: iChansMax_DB()

Aaron:
 
The problem you are having is due to a series of bugs in the db.gxh header file. The following four functions should return type "int" but are currently returning type "void".
 
Try fixing the problem by editing your copy of db.gxh and subitituting in the correct types: e.g.:
 
//-------------------------------------------------------------------------
// iBlobsMax_DB   Gets Maximum Number of Blobs in the Database
//
// Returns        Maximum Number of Blobs in the Database
//
 
[geogx] int
iBlobsMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iLinesMax_DB   Gets Maximum number of lines in the database
//
// Returns        Maximum number of lines in the database
//
 
[geogx] int
iLinesMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iChansMax_DB   Gets Maximum Number of Channels in the Database
//
// Returns        Maximum Number of Channels in the Database
//
 
[geogx] int 
iChansMax_DB( DB );            // Database Object
 
//-------------------------------------------------------------------------
// iUsersMax_DB   Gets Maximum number of Users
//
// Returns        Maximum number of Users
//
 
[geogx] int
iUsersMax_DB( DB );            // Database Object
 
 
Hope this helps...
 
Stephen Cheesman

_______________
Geosoft Inc.
Stephen Cheesman
[EMAIL PROTECTED]
(905) 315-8207

Software and services for effective earth science decision-making. Free Oasis montaj interface with public-domain Data Access Protocol (DAP) for accessing high-volume spatial data over the Internet available for download at http://www.geosoft.com/pinfo/free/downloadfree.html

 

Reply via email to