Hi all,
Awhile ago, I developed a loadchan GX that enabled me to go through a
series of databases in batch mode and load up to 20 channels. It worked
fine for a long time, but today I started to have problems with it, and I can't
seem to solve the problem. When the GX is working, how it should work is I
enter my databases and the channels which I wish to load through a dialogue box.
The gx loads the database, if the option is set it unloads all the channels in
the database, loads the desired channels, prompts the user to
save(ID_FILE_COMMIT conmmand), and then proceeds to the next database. After
completion of the GX, the appropriate channels are loaded in the database.
What's happening now is, the GX loads the database, unloads all
channels(according to if iErase=1), loads the desired channels, prompts the user
to save the database(at this point, everything looks fine), and then proceeds to
the next database. Everything still looks fine upon completion of the GX, but
when I go back and load the database, The channels I wanted loaded are loaded,
but so are all the other channels. I don't understand what's going on becuase at
the point where the GX gives the prompt to save, the appropriate channels are
loaded into the database.
Here is the section of the GX that loads the desired channels and saves the
database:
// --- Get the Database ---
EData1 = Current_EDB(); SetInteractive_SYS(0); // Turns interactive mode off for all calls to // iRunGX_SYS. if (iErase == 1)
UnLoadAllChans_EDB(EData1); LoadChan_EDB(EData1,
sChan1);
LoadChan_EDB(EData1, sChan2); LoadChan_EDB(EData1, sChan3); // etc.... up
to 20 channels can be loaded.
DoCommand_SYS("[ID] ID_FILE_COMMIT");
UnLoad_EDB(sDbin); //Close the edited database.
} SetInteractive_SYS(0); //Reset interactive mode to 1 -
on
}
To add to the mystery, I've done a few tests and if I add a
Abort_SYS("EXIT"); command before the DoCommand_SYS(function), and manually
click the close button in the upper right hand corner of the database and choose
'yes' to save, when I subsequently open the database the appropriate channels
are loaded.
If any one has any ideas of what's happening here, I would really
appreciate the help
Aaron Balasch
Sky Hunter Technologies Inc. Suite 101, 1725 10th Avenue S.W. Calgary, Alberta T3C 0K1 email: [EMAIL PROTECTED] phone: 403-228-2175 fax: 403-244-7955 |
- RE: [gxnet]: Loading a channel skyhunter
- RE: [gxnet]: Loading a channel Stephen Cheesman
- Re: [gxnet]: Loading a channel skyhunter
- RE: [gxnet]: Loading a channel Stephen Cheesman
- RE: [gxnet]: Loading a channel Bart Hoekstra
- RE: [gxnet]: Loading a channel Stephen Cheesman