Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

If it's legal put method call in Activate event?

2 posts in General Discussion (old) Last posting was on 2000-03-01 20:21:59.0Z
Vladimir Uzlaner Posted on 2000-03-01 14:39:33.0Z
Newsgroups: sybase.public.easerver
From: "Vladimir Uzlaner" <vuzlaner@telsource.com>
Organization: 209.123.44.169
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: If it's legal put method call in Activate event?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Wed, 01 Mar 2000 09:39:33 -0500
Lines: 27
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_lk9e1v4g$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27431
Article PK: 158832

Hi, all

I carefully read documentation about component's life cycle and I claim it is
illegal make function call from Activate event.

I've already experienced situation, when arguments from one methods was confused
with arguments to the method that I call from activate event.
It's happend because component really instantiated after a method invocation.
Let's say I have of_DBMSConnect( as_dbms, as_dbparm) function I call in activate
event. I have another function of_do_something( as_user_id, as_dept). So when I
call this function, arguments are stored in some area, the session is created,
constructor is fired, activate event is fired... stop... In this moment
of_DBMSConnect() is called. So what's happend in next moment? I noticed that (
as_user_id, as_dept) argument went to the of_DBMSConnect( as_dbms, as_dbparm)
function.

Does anybody experienced similar situation?

Thank you,
Vladimir Uzlaner
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Evan Ireland Posted on 2000-03-01 20:21:59.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 02 Mar 2000 09:21:59 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Vladimir Uzlaner <vuzlaner@telsource.com>
Subject: Re: If it's legal put method call in Activate event?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 36
NNTP-Posting-Host: vpn-eme-087.sybase.com 130.214.8.87
Message-ID: <347_38BD7BE7.ED07AAC8@sybase.com>
References: <347_lk9e1v4g$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27399
Article PK: 158804


Vladimir Uzlaner wrote:
>
> Hi, all
>
> I carefully read documentation about component's life cycle and I claim it is
> illegal make function call from Activate event.

I claim it is legal to make a function call from the Activate event.

> I've already experienced situation, when arguments from one methods was confused
> with arguments to the method that I call from activate event.

You should work with Technical Support to get to the bottom of this.

> It's happend because component really instantiated after a method invocation.
> Let's say I have of_DBMSConnect( as_dbms, as_dbparm) function I call in activate
> event. I have another function of_do_something( as_user_id, as_dept). So when I
> call this function, arguments are stored in some area, the session is created,
> constructor is fired, activate event is fired... stop... In this moment
> of_DBMSConnect() is called. So what's happend in next moment? I noticed that (
> as_user_id, as_dept) argument went to the of_DBMSConnect( as_dbms, as_dbparm)
> function.
>
> Does anybody experienced similar situation?

I've never heard of this problem before. Perhaps others have.
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856