Opening a database connection from within Execute method of TThread object

Opening a database connection from within Execute method of TThread object

Post by Rona » Sun, 21 Dec 2003 00:30:47


Hi,
I have a TADODataSet member within the thread class.
TADODataSet *ADODataSet3;
When i try to instantiate it in the execute method of the thread

ADODataSet3 = new TADODataSet(NULL)

the de *** stops at that point. I have no idea why. Is it to do with the
constructor method of the TADODataSet ??

Thanks
Ronan
 
 
 

1. ADO Connection.Execute Method leaves Open SQL Process

2. calling methods from other methods within an object

I have an object and I want to use x = fslove(@fun,x0) as a method, where @fun is another method within the same class definition. A simplified example of my syntax is below, I am using handle classes, b and x0 are public properties.

function compute(obj)

fsolve(@obj.fun,obj.x0);

end


function x = fun(obj)

x = [sin(obj.b(1)) - obj.x0(1);
cos(obj.b(2)) - obj.x0(2)];

end

I get an error 'too many input arguments' whenever I have an input like @obj.fun as the first argument in fsolve. Does fsolve accept methods? What do you think is causing this problem?

3. TclOO: Can I execute a method from an object in the context of another object?

4. function handles as object properties - to execute object methods

5. Accessing method object from within a method

6. accessing one objects methods from within another object

7. method 'open current database' of object '_application failed

8. Can i pass a SqlConnection object with opened connection to a method/function as a parameter?

9. Getting name of object instance from within object method

10. Method '~' of object '~' failed error while opening ADODB connection in vb6

11. [News] Open Database License is Out, Topocad Uses Open Source FDO Database Connection

12. Method "Method 'Open' of object 'Workbooks' failed

13. Create a connection object (sql/oledb/odbc) based on connection method/string.

14. Object Method of Office.COMAddin object returns Nothing after connection

15. ASP page hangs on opening connection object to mdb database