Error creating VA channel using stand-alone application

BrianMinty
BrianMinty Posts: 3 Calcite Rank Badge
edited March 2023 in Oasis montaj
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

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.1