irregular program termination while ttable operation

irregular program termination while ttable operation

Post by ca20.. » Sun, 16 Mar 1997 04:00:00



What may cause a complete irregular termination of an application while opening a ttable in a try..except block ??

Does anybody have any experiences like that ???

Thanks

 
 
 

1. Filtering a ttable : operation not applicable....

Question:

Using D4 and Paradox tables <BDE alias on server>.... when trying open
and filter a table programatically the following exception is generated:
ERRCAT_INVALIDCONTEXT, ERRCODE_NA : <42,10756>  "Operation Not
Applicable"

I use this same method on tables in the same "database" in the same app
with no problems....

Offending Code;

        With ProductionTable Do
          Try
            Filter := '';
            Filtered := false;
            Close;
            TableName := 'Transaction_Production.db';
            Open;
            Filter   := chr(39) + 'Project=' + DCS_Form.Current_Project
+ chr(39);
            Filtered := True;
          Except
            On E: EDBEngineError Do
                MessageDlg('Error:'+#13+E.Message+#13+
                            'Category: ' +
IntToStr(E.Errors[0].Category) + #13 +
                            'Error   : ' +
IntToStr(E.Errors[0].ErrorCode),
                            mtError, [mbOk], 0);
          End;

the exception generates the first time it's called <during FormCreate>
at which point there is no tablename assigned and so is not active
etc....

Any ideas?

Any HELP GREATLY appreciated!!!
---------------------------------------
Brian Baley
Systems Administrator
Huffman-Wright
bbaley <at> mcsi <dot> net

2. .val file out of date???

3. CDaoXXX problems on program termination.

4. Sql Server slows down when running simple update queries on 5 million row table.

5. Abnormal Program Termination

6. ANSI way to get total rows in table

7. Database ?

8. Problem with ADO and program termination in Visual C++

9. Abnormal Program Termination

10. Abnormal Program Termination - HELP Needed desparately

11. Update: "Abnormal Program termination" - FYI

12. Improper program termination