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.

The shared object session could not be created!

2 posts in Objects Last posting was on 2002-09-10 13:10:28.0Z
michela Posted on 2002-09-10 10:54:48.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "michela" <michela@michela>
Subject: The shared object session could not be created!
Date: Tue, 10 Sep 2002 12:54:48 +0200
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: ppp-217-133-10-143.dialup.tiscali.it 217.133.10.143
Message-ID: <364_cJo$4sLWCHA.311@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:944
Article PK: 713514

Using a COM PB80 dll from PB exe I try SharedObjectRegister function. It
gives me this error.
The code is:

errorreturn l_errorreturn

l_errorreturn = SharedObjectRegister("uo_gl","gl")
choose case l_ErrorReturn
case Success!
is_er = "ok!"

case SharedObjectExistsError!
is_er = "The instance name has already been used!"
return -1
case SharedObjectCreateInstanceError!
is_er = "The object could not be created!"
return -1
case SharedObjectCreatePBSessionError!
is_er = "The shared object session could not be created!"
return -1
case else
is_er = "The SharedOjectRegister Failed!"
return -1
end choose
return 0


uo_gl is a nvo with only a property (string is_tmp)
This line code is call by COM component ( dll ).

Have you got suggestions?
Thank you.


Roy Kiesler [TeamSybase] Posted on 2002-09-10 13:10:28.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: The shared object session could not be created!
Date: Tue, 10 Sep 2002 09:10:28 -0400
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_9QnRY1MWCHA.300@forums.sybase.com>
References: <364_cJo$4sLWCHA.311@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:943
Article PK: 713506

I don't believe you can register COM components as shared objects, only
standard NVOs.

Perhaps I'm missing something, though -- would you care to clarify "COM PB80
dll"?

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
Sybase Developer Network -- http://sdn.sybase.com

"michela" <michela@michela> wrote in message
news:cJo$4sLWCHA.311@forums.sybase.com...
> Using a COM PB80 dll from PB exe I try SharedObjectRegister function. It
> gives me this error.
> The code is:
>
> errorreturn l_errorreturn
>
> l_errorreturn = SharedObjectRegister("uo_gl","gl")
> choose case l_ErrorReturn
> case Success!
> is_er = "ok!"
>
> case SharedObjectExistsError!
> is_er = "The instance name has already been used!"
> return -1
> case SharedObjectCreateInstanceError!
> is_er = "The object could not be created!"
> return -1
> case SharedObjectCreatePBSessionError!
> is_er = "The shared object session could not be created!"
> return -1
> case else
> is_er = "The SharedOjectRegister Failed!"
> return -1
> end choose
> return 0
>
>
> uo_gl is a nvo with only a property (string is_tmp)
> This line code is call by COM component ( dll ).
>
> Have you got suggestions?
> Thank you.
>
>