Error creating VA channel using stand-alone application
BrianMinty
Posts: 3
I'm creating an external stand-alone application and have run into what I suspect may be a license issue. I'm using CreateSymbEx_DB to create a new channel as follows:
hDB = Open_DB(pGeo,dbasePath,"SUPER","");
GEO_ERROR;
long nchan = 1;
long symbolType = DB_SYMB_CHAN ;
long symbolOwner = DB_OWN_SHARED;
long channelCategory = DB_CATEGORY_CHAN_DOUBLE;
hInCh = FindSymb_DB(pGeo,&hDB,sInCh,&symbolType);
GEO_ERROR;
if (!iExistSymb_DB(pGeo,&hDB,sOutCh,&symbolType)) { // Does the Output Channel Exist?
hOutCh = CreateSymbEx_DB(pGeo,&hDB,sOutCh,&symbolType,&symbolOwner,&channelCategory,&nchan); // Create it
GEO_ERROR;
UnLockSymb_DB(pGeo,&hDB,&hOutCh);
GEO_ERROR;
}
else {
hOutCh = FindSymb_DB(pGeo,&hDB,sOutCh,_l(DB_SYMB_CHAN));
GEO_ERROR;
}
// Lock the channel symbols
if (hInCh != hOutCh) {
LockSymb_DB(pGeo,&hDB,&hInCh,_l(DB_LOCK_READONLY),_l(DB_WAIT_INFINITY));
GEO_ERROR;
}
LockSymb_DB(pGeo,&hDB,&hOutCh,_l(DB_LOCK_READWRITE),_l(DB_WAIT_INFINITY));
GEO_ERROR;
This works for fine for a VV channel (nchan=1), but returns an invalid handle (hOutCh=-1, no error message from GEO_ERROR) if I try to create a VA channel (nchan=256).
The documentation for CreateSymbEx_DB states that "The ability to create a VA channel is not available in the free interface and requires a Montaj license". I have a license for the base OM system, version 7.3. Is this not good enough? Can anyone enlighten me?
Thanks Brian
hDB = Open_DB(pGeo,dbasePath,"SUPER","");
GEO_ERROR;
long nchan = 1;
long symbolType = DB_SYMB_CHAN ;
long symbolOwner = DB_OWN_SHARED;
long channelCategory = DB_CATEGORY_CHAN_DOUBLE;
hInCh = FindSymb_DB(pGeo,&hDB,sInCh,&symbolType);
GEO_ERROR;
if (!iExistSymb_DB(pGeo,&hDB,sOutCh,&symbolType)) { // Does the Output Channel Exist?
hOutCh = CreateSymbEx_DB(pGeo,&hDB,sOutCh,&symbolType,&symbolOwner,&channelCategory,&nchan); // Create it
GEO_ERROR;
UnLockSymb_DB(pGeo,&hDB,&hOutCh);
GEO_ERROR;
}
else {
hOutCh = FindSymb_DB(pGeo,&hDB,sOutCh,_l(DB_SYMB_CHAN));
GEO_ERROR;
}
// Lock the channel symbols
if (hInCh != hOutCh) {
LockSymb_DB(pGeo,&hDB,&hInCh,_l(DB_LOCK_READONLY),_l(DB_WAIT_INFINITY));
GEO_ERROR;
}
LockSymb_DB(pGeo,&hDB,&hOutCh,_l(DB_LOCK_READWRITE),_l(DB_WAIT_INFINITY));
GEO_ERROR;
This works for fine for a VV channel (nchan=1), but returns an invalid handle (hOutCh=-1, no error message from GEO_ERROR) if I try to create a VA channel (nchan=256).
The documentation for CreateSymbEx_DB states that "The ability to create a VA channel is not available in the free interface and requires a Montaj license". I have a license for the base OM system, version 7.3. Is this not good enough? Can anyone enlighten me?
Thanks Brian
0
Comments
-
I have the same problem. And now I stated to have the same problem with other functions like Seek_BF. Still looking for solution. I have base license for version 9.8.10
Categories
- All Categories
- 5 Community
- 3 Get Started
- 16 Latest Releases
- 15 Member Spotlight
- 39 Learning
- 1 Products
- Geology
- 535 Leapfrog
- 1 Volsung
- 25 Visible Geology
- Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- Geotechnical
- 136 GeoStudio
- Geophysics
- 319 Oasis montaj
- 1 Workbench
- SPIA
- 9 Res2DInv & Res3DInv
- 3 Evo
- 26 GX Developer