cant create obj error when calling a function in same class 
Author Message
 cant create obj error when calling a function in same class

I have a class that has two functions in it, one function calls the other
with no parameters

Service.cls

Public Function Get()
    Call Make()
End Function

Private Function Make()
End Function

after the app has run under load for a while the call to the make() function
will generate the following error

ActiveX component can't create object.

(I know this question is obscure, but any brainstorming will be MUCH
appreciated)

thx



Sun, 26 Sep 2004 02:46:05 GMT  
 cant create obj error when calling a function in same class
i dont see the code where you instantiate that component? :

dim a as Servive
     set a=new service
     call a.make


Quote:
> I have a class that has two functions in it, one function calls the other
> with no parameters

> Service.cls

> Public Function Get()
>     Call Make()
> End Function

> Private Function Make()
> End Function

> after the app has run under load for a while the call to the make()
function
> will generate the following error

> ActiveX component can't create object.

> (I know this question is obscure, but any brainstorming will be MUCH
> appreciated)

> thx



Sun, 26 Sep 2004 03:12:07 GMT  
 cant create obj error when calling a function in same class
the service obj is instantiated ok , both functions are in that object and
the call to Function Get() is fine
but when it calls the Make() function then it bombs.  I know I haven't given
enough code clearly show what the code is doing
but I don't think the code is the problem, I think there is a memory or
thread problem...

I was hoping the error message I am getting would have been seen in a
similar situation buy someone...

(I know I'm grasping at straws here... )

thx for your thoughts...


Quote:
> i dont see the code where you instantiate that component? :

> dim a as Servive
>      set a=new service
>      call a.make



> > I have a class that has two functions in it, one function calls the
other
> > with no parameters

> > Service.cls

> > Public Function Get()
> >     Call Make()
> > End Function

> > Private Function Make()
> > End Function

> > after the app has run under load for a while the call to the make()
> function
> > will generate the following error

> > ActiveX component can't create object.

> > (I know this question is obscure, but any brainstorming will be MUCH
> > appreciated)

> > thx



Sun, 26 Sep 2004 06:03:19 GMT  
 cant create obj error when calling a function in same class
Get is reserved keyword. You should change the name of the function!

- Jure



Sun, 26 Sep 2004 16:04:02 GMT  
 cant create obj error when calling a function in same class
its actually pageget()

sorry...


Quote:
> Get is reserved keyword. You should change the name of the function!

> - Jure



Sun, 26 Sep 2004 23:19:38 GMT  
 cant create obj error when calling a function in same class
I've seen this myself - recently and solved it, though it may not be exactly
the same. Have you browsed the web for it.

... its usually associated with RPC calls to COM Automation objects that are
called repetitively according to KB Q181894 and suggests that the calling
loop requires a peekMessgae (VB Doevents?)
Check out the KB article first, I think it implies you need to put a
PeekMessage (Vb Doevents) in the calling loop, didn't work for me, what i
did was to streamline my code a lot, and that worked. There is an inbuilt
'feature' when calling COM objects repetitively. Maybe the PeekMessage frees
a reference up, just experiment and 99 times out of a 100, one seems to be
able to get these things sorted.

Clive


Quote:
> I have a class that has two functions in it, one function calls the other
> with no parameters

> Service.cls

> Public Function Get()
>     Call Make()
> End Function

> Private Function Make()
> End Function

> after the app has run under load for a while the call to the make()
function
> will generate the following error

> ActiveX component can't create object.

> (I know this question is obscure, but any brainstorming will be MUCH
> appreciated)

> thx



Mon, 27 Sep 2004 09:03:33 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Dim obj As New Class crt Dim Obj As Class = New Class

2. ActiveX cant create Obj!!!

3. COM+ obj calling another COM+ obj

4. Public Method in a class calling a private method in same class yields ByRef error

5. OLE Automation Server cant create object error please help

6. Error 429 ActiveX component cant create object

7. cant create object using VBscript(error no 91) (urgent)

8. Error 429 - cant create ActiveX object

9. activeX, Cant Create Object Error:

10. Error 429 - cant create ActiveX object

11. activeX, Cant Create Object Error:

12. Calling a Function in an MS Access Class/Form/Module from an outside application

 

 
Powered by phpBB® Forum Software