Hi there all,
 
I'm having a lot of trouble here with something and I'm just hoping that someone might have seen this kind of thing before and knows what the solution is. First of all, for unrelated reasons, I have  a series of databases named mcb10001, mcb10002, etc. that have the same five charachter prefix mcb10*.*. To handle several databases that all begin with the same prefix, I have modified some Geosoft GX's such as the filter.gx. I've tested out my filter GX and it seems to work fine as a stand alone gx. Below is a section of code from another gx that I'm writing that calls the filter.gx. If I comment out the second call to iRunGX_SYS, everything works fine and I get to the Abort_SYS message. The problem comes if I uncomment the second call to iRunGX_SYS. When I run it with both calls to iRunGX, the first call to the filter.gx runs but the second call to filter.gx gives me the error message "Unable to open "C:\Geotemp\c9ede076.tmp" for mode "ReadOnly" because N/A File not found, unreadable or may already be open", but then it proceeds to the Abort_SYS message.
 
 
SetString_SYS("Filter", "Prefix", "mcb10");
SetInt_SYS("Filter", "start", 11);
SetInt_SYS("Filter", "end", 11);
SetString_SYS("Filter", "in", "c2");
SetString_SYS("Filter", "out", "a");
SetString_SYS("Filter", "file", "");
SetString_SYS("Filter", "filter", "-1,1,0");
iRunGX_SYS("c:\\geosoft\\filter.gx");
 
SetString_SYS("Filter", "Prefix", "mcb10");
SetInt_SYS("Filter", "start", 11);
SetInt_SYS("Filter", "end", 11);
SetString_SYS("Filter", "in", "c2");
SetString_SYS("Filter", "out", "b");
SetString_SYS("Filter", "file", "");
SetString_SYS("Filter", "filter", "-1,1,0");
iRunGX_SYS("c:\\geosoft\\filter.gx");
 
Abort_SYS("DONE");
 
Has anyone got this kind of error message before? I've worked on this problem long enough that I now suspect that I'm doing something wrong in the filter.gx that didn't show up when I ran it as a stand alone gx, like not unlocking all channels or not destroying all the symbol Handles. Could this give such an error message? Does anyone have any ideas at all?
 
 
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]

Reply via email to