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.

Generated binary data for embedded OLE object

6 posts in Objects Last posting was on 2008-06-13 14:49:40.0Z
Jon Sligh Posted on 2008-06-11 17:37:16.0Z
Sender: 6c65.484fedd3.1804289383@sybase.com
From: Jon Sligh
Newsgroups: sybase.public.powerbuilder.objects
Subject: Generated binary data for embedded OLE object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48500d4c.73d0.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 11 Jun 2008 10:37:16 -0700
X-Trace: forums-1-dub 1213205836 10.22.241.41 (11 Jun 2008 10:37:16 -0700)
X-Original-Trace: 11 Jun 2008 10:37:16 -0700, 10.22.241.41
Lines: 60
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9719
Article PK: 736851

Hello,

I am trying to understand the binary data that is found in a
PB object that has an embedded OLE object to MS Word. We
have an application that works in a Citrix environment but
we have found that the PowerBuilder 10 version of the object
is behaving very differently in a Citrix environment than
the PowerBuilder 8 version does. We have identified that the
only difference between the two objects is the generated
binary data. In fact we have moved the generated binary
data from PowerBuilder 8 to the PowerBuilder 10 version and
now the object is behaving correctly.

The OLE object is a reference to the same version of MS
Word. The only thing that has changed is the version of
PowerBuilder that is used.

The difference is that in PowerBuilder 8 the binary data
that is generated is much smaller than the binary data that
is generated in PowerBuilder 10.

In PowerBuilder 8 the generated binary data is 4k in size
and looks like the following:
Start of PowerBuilder Binary Data Section : Do NOT Edit
0Ap_uo_text_entry_word.bin 1996
2000000600e011cfd0e11ab1a1000
.....
00000000
1Ap_uo_text_entry_word.bin 1996
End of PowerBuilder Binary Data Section : No Source
Expected After This Point

In PowerBuilder 10 the generated binary data is 39k in size
and looks like the following
Start of PowerBuilder Binary Data Section : Do NOT Edit
0Ap_uo_text_entry_word.bin
2100004c00e011cfd0e11ab1a
.....
000000
1Ap_uo_text_entry_word.bin
End of PowerBuilder Binary Data Section : No Source
Expected After This Point

The generated binary data in both versions is somewhat the
same as you can see but the PowerBuilder 10 version contains
a lot more data which is mostly composed of 0s.

My questions are the following:
- What does the contents of the binary data include?
- How can I read the binary data?
- Why is the generated binary data so much greater in
PowerBuilder 10 than in PowerBuilder 8?
- What does the generated binary data in PowerBuilder 10
include that is not found in the PowerBuilder 8 version?

Thanks so much in advance for all of your help,
Jon

Jon Sligh
jon.sligh@sunquestinfo.com


Paul Horan[TeamSybase] Posted on 2008-06-11 19:18:19.0Z
From: "Paul Horan[TeamSybase]" <phoran_nospam@sybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <48500d4c.73d0.1681692777@sybase.com>
Subject: Re: Generated binary data for embedded OLE object
Lines: 72
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <485024fb$1@forums-1-dub>
Date: 11 Jun 2008 12:18:19 -0700
X-Trace: forums-1-dub 1213211899 10.22.241.152 (11 Jun 2008 12:18:19 -0700)
X-Original-Trace: 11 Jun 2008 12:18:19 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9720
Article PK: 736849

Note that PB10 is Unicode compliant. I'd guess that's the source of the
difference in file size as the PB10 version would be double-byte, but I
don't think that accounts for an almost ten-fold increase in size...

When you migrated the app from 8 to 10, did you re-embed the OLE object, or
just migrate and re-compile?

Paul Horan[TeamSybase]

<Jon Sligh> wrote in message news:48500d4c.73d0.1681692777@sybase.com...
> Hello,
>
> I am trying to understand the binary data that is found in a
> PB object that has an embedded OLE object to MS Word. We
> have an application that works in a Citrix environment but
> we have found that the PowerBuilder 10 version of the object
> is behaving very differently in a Citrix environment than
> the PowerBuilder 8 version does. We have identified that the
> only difference between the two objects is the generated
> binary data. In fact we have moved the generated binary
> data from PowerBuilder 8 to the PowerBuilder 10 version and
> now the object is behaving correctly.
>
> The OLE object is a reference to the same version of MS
> Word. The only thing that has changed is the version of
> PowerBuilder that is used.
>
> The difference is that in PowerBuilder 8 the binary data
> that is generated is much smaller than the binary data that
> is generated in PowerBuilder 10.
>
> In PowerBuilder 8 the generated binary data is 4k in size
> and looks like the following:
> Start of PowerBuilder Binary Data Section : Do NOT Edit
> 0Ap_uo_text_entry_word.bin 1996
> 2000000600e011cfd0e11ab1a1000
> .....
> 00000000
> 1Ap_uo_text_entry_word.bin 1996
> End of PowerBuilder Binary Data Section : No Source
> Expected After This Point
>
> In PowerBuilder 10 the generated binary data is 39k in size
> and looks like the following
> Start of PowerBuilder Binary Data Section : Do NOT Edit
> 0Ap_uo_text_entry_word.bin
> 2100004c00e011cfd0e11ab1a
> .....
> 000000
> 1Ap_uo_text_entry_word.bin
> End of PowerBuilder Binary Data Section : No Source
> Expected After This Point
>
> The generated binary data in both versions is somewhat the
> same as you can see but the PowerBuilder 10 version contains
> a lot more data which is mostly composed of 0s.
>
> My questions are the following:
> - What does the contents of the binary data include?
> - How can I read the binary data?
> - Why is the generated binary data so much greater in
> PowerBuilder 10 than in PowerBuilder 8?
> - What does the generated binary data in PowerBuilder 10
> include that is not found in the PowerBuilder 8 version?
>
> Thanks so much in advance for all of your help,
> Jon
>
> Jon Sligh
> jon.sligh@sunquestinfo.com


Jon Sligh Posted on 2008-06-11 20:36:44.0Z
Sender: 6c65.484fedd3.1804289383@sybase.com
From: Jon Sligh
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Generated binary data for embedded OLE object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4850375b.7b2c.1681692777@sybase.com>
References: <485024fb$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 11 Jun 2008 13:36:44 -0700
X-Trace: forums-1-dub 1213216604 10.22.241.41 (11 Jun 2008 13:36:44 -0700)
X-Original-Trace: 11 Jun 2008 13:36:44 -0700, 10.22.241.41
Lines: 82
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9721
Article PK: 736852

Hi Paul,

We actually re-embedded the object OLE-Object in hope to
take advantage of the new PB 10 environment and
enhancements. I am guessing thats not a good idea then.

Jon
jon.sligh@sunquestinfo.com

> Note that PB10 is Unicode compliant. I'd guess that's the
> source of the difference in file size as the PB10 version
> would be double-byte, but I don't think that accounts for
> an almost ten-fold increase in size...
>
> When you migrated the app from 8 to 10, did you re-embed
> the OLE object, or just migrate and re-compile?
>
> Paul Horan[TeamSybase]
>
> <Jon Sligh> wrote in message
> > news:48500d4c.73d0.1681692777@sybase.com... Hello,
> >
> > I am trying to understand the binary data that is found
> > in a PB object that has an embedded OLE object to MS
> > Word. We have an application that works in a Citrix
> > environment but we have found that the PowerBuilder 10
> > version of the object is behaving very differently in a
> > Citrix environment than the PowerBuilder 8 version does.
> > We have identified that the only difference between the
> > two objects is the generated binary data. In fact we
> > have moved the generated binary data from PowerBuilder 8
> > to the PowerBuilder 10 version and now the object is
> behaving correctly. >
> > The OLE object is a reference to the same version of MS
> > Word. The only thing that has changed is the version of
> > PowerBuilder that is used.
> >
> > The difference is that in PowerBuilder 8 the binary data
> > that is generated is much smaller than the binary data
> > that is generated in PowerBuilder 10.
> >
> > In PowerBuilder 8 the generated binary data is 4k in
> > size and looks like the following:
> > Start of PowerBuilder Binary Data Section : Do NOT
> > Edit 0Ap_uo_text_entry_word.bin 1996
> > 2000000600e011cfd0e11ab1a1000
> > .....
> > 00000000
> > 1Ap_uo_text_entry_word.bin 1996
> > End of PowerBuilder Binary Data Section : No Source
> > Expected After This Point
> >
> > In PowerBuilder 10 the generated binary data is 39k in
> > size and looks like the following
> > Start of PowerBuilder Binary Data Section : Do NOT
> > Edit 0Ap_uo_text_entry_word.bin
> > 2100004c00e011cfd0e11ab1a
> > .....
> > 000000
> > 1Ap_uo_text_entry_word.bin
> > End of PowerBuilder Binary Data Section : No Source
> > Expected After This Point
> >
> > The generated binary data in both versions is somewhat
> > the same as you can see but the PowerBuilder 10 version
> > contains a lot more data which is mostly composed of 0s.
> >
> > My questions are the following:
> > - What does the contents of the binary data include?
> > - How can I read the binary data?
> > - Why is the generated binary data so much greater in
> > PowerBuilder 10 than in PowerBuilder 8?
> > - What does the generated binary data in PowerBuilder 10
> > include that is not found in the PowerBuilder 8 version?
> >
> > Thanks so much in advance for all of your help,
> > Jon
> >
> > Jon Sligh
> > jon.sligh@sunquestinfo.com
>
>


Paul Horan[TeamSybase] Posted on 2008-06-12 20:47:13.0Z
From: "Paul Horan[TeamSybase]" <phoran_nospam@sybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <485024fb$1@forums-1-dub> <4850375b.7b2c.1681692777@sybase.com>
Subject: Re: Generated binary data for embedded OLE object
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48518b51$1@forums-1-dub>
Date: 12 Jun 2008 13:47:13 -0700
X-Trace: forums-1-dub 1213303633 10.22.241.152 (12 Jun 2008 13:47:13 -0700)
X-Original-Trace: 12 Jun 2008 13:47:13 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9723
Article PK: 736854


<Jon Sligh> wrote in message news:4850375b.7b2c.1681692777@sybase.com...
> Hi Paul,
>
> We actually re-embedded the object OLE-Object in hope to
> take advantage of the new PB 10 environment and
> enhancements. I am guessing thats not a good idea then.
>
> Jon
> jon.sligh@sunquestinfo.com
>

Hmm. That's what I was going to suggest you do... Maybe your OLEObject
isn't Unicode aware...

Can you define "behaving very differently" a little better? What are the
symptoms you're seeing?

Paul Horan[TeamSybase]


Jon Sligh Posted on 2008-06-12 21:24:45.0Z
Sender: 227c.48514458.1804289383@sybase.com
From: Jon Sligh
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Generated binary data for embedded OLE object
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4851941d.31d3.1681692777@sybase.com>
References: <48518b51$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 12 Jun 2008 14:24:45 -0700
X-Trace: forums-1-dub 1213305885 10.22.241.41 (12 Jun 2008 14:24:45 -0700)
X-Original-Trace: 12 Jun 2008 14:24:45 -0700, 10.22.241.41
Lines: 44
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9724
Article PK: 736856


> <Jon Sligh> wrote in message
> > news:4850375b.7b2c.1681692777@sybase.com... Hi Paul,
> >
> > We actually re-embedded the object OLE-Object in hope to
> > take advantage of the new PB 10 environment and
> > enhancements. I am guessing thats not a good idea then.
> >
> > Jon
> > jon.sligh@sunquestinfo.com
> >
>
>
> Hmm. That's what I was going to suggest you do... Maybe
> your OLEObject isn't Unicode aware...
>
> Can you define "behaving very differently" a little
> better? What are the symptoms you're seeing?
>
> Paul Horan[TeamSybase]
>
>

Hi Paul,

The behavior difference is in the Citrix environment.

When we run the PB application straight up MS Word is
minimized by our PB application and stays minimized even if
the PB application gathers information from MS Word via the
OLE connection.

But when running in a Citrix environment our PB application
minimizes MS Word with no issues. Its when the PB
application gathers information from MS Word via the OLE
connection...MS Word is restoring it self on top of the PB
application when the OLE connection is accessed. Its an
annoyance to our customers who are using our PB application
in the Citrix environment because MS Word pops up at random
times while they are doing work.

Thanks so much for all of the help.

Jon
Jon.sligh@sunquestinfo.com


Paul Horan[TeamSybase] Posted on 2008-06-13 14:49:40.0Z
From: "Paul Horan[TeamSybase]" <phoran_nospam@sybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <48518b51$1@forums-1-dub> <4851941d.31d3.1681692777@sybase.com>
Subject: Re: Generated binary data for embedded OLE object
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48528904$1@forums-1-dub>
Date: 13 Jun 2008 07:49:40 -0700
X-Trace: forums-1-dub 1213368580 10.22.241.152 (13 Jun 2008 07:49:40 -0700)
X-Original-Trace: 13 Jun 2008 07:49:40 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9726
Article PK: 736858


<Jon Sligh> wrote in message news:4851941d.31d3.1681692777@sybase.com...
>> Hmm. That's what I was going to suggest you do... Maybe
>> your OLEObject isn't Unicode aware...
>>
>> Can you define "behaving very differently" a little
>> better? What are the symptoms you're seeing?
>>
>> Paul Horan[TeamSybase]
>>
>>
>
> Hi Paul,
>
> The behavior difference is in the Citrix environment.
>
> When we run the PB application straight up MS Word is
> minimized by our PB application and stays minimized even if
> the PB application gathers information from MS Word via the
> OLE connection.
>
> But when running in a Citrix environment our PB application
> minimizes MS Word with no issues. Its when the PB
> application gathers information from MS Word via the OLE
> connection...MS Word is restoring it self on top of the PB
> application when the OLE connection is accessed. Its an
> annoyance to our customers who are using our PB application
> in the Citrix environment because MS Word pops up at random
> times while they are doing work.
>
> Thanks so much for all of the help.
>
> Jon
> Jon.sligh@sunquestinfo.com

That is weird... I'd tend to think that's an issue with Word, not with PB
or Citrix.
Let's eliminate some variables:

- Are you using the same version/service pack of Word in both environments?
- Same build/EBF of PB in both versions?
- Are you proficient with VB or C# at all? It would be interesting to write
a small VB shell program that made the same OLE calls to Word to see if the
same behavior occured. Then you'd know it wasn't PB's fault.

Paul Horan[TeamSybase]