If I try to insert an ole control, the insert object dialog opens. However,
when I select the "insert control" tab, PowerBuilder crashes. Through some
perusing of the newsgroups, I was also able to determine that if I opened
the object browser and double clicked the "OLE Custom Controls" node,
PowerBuilder crashes there also. Now here's the catch. This is in PB9.0.3
Build 8784. When I try to do the same thing in PB10.0.2 Build 9761,
everything works just fine.
My machine is Windows XP SP2, all critical patches applied.
What I have done is ran regmon against PB9, to watch what is happening in
the registry as it tries to load the control.
My problem is, I'm having a problem understanding everything I'm seeing
here. I've filtered the result set down to just pb90.exe entries, so I'm
only looking at those. I think I understand that I'm supposed to find the
last successfully inserted control into the result. And that the next one
down should be the problem child. Then I should unregister that control.
However, like I said, I'm not sure what to look at in order to determine
which one was the last successful one. I'm looking at so many "Not Founds",
that it would seem that the entire registry is broken.
I can see when the registry trips into ErrorReporting mode. My gut told me
it was the entry above that. An OCX control under the System32 directory.
I unregistered the ocx, fired up PB9 and down it went again. Was able to
reregister control without any problems. So I know it's not that one. One
down, Five Thousand to go!! ;-)
Anyway, I was just curious if anybody can point me in the right direction as
far as tracking down what registry entry would be causing PB to crash when
you try to access an OLE control. Any information would be greatly
appreciated.
TIA
Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN
Actually, it will be the last one accessed that is the problem, not
the one after it. It was PB accessing that control that caused it to
crash.
On 5 Feb 2008 23:10:56 -0800, "Jeff Gibson"
Thanks for the heads up on the info that were out there concerning this
issue.
I was able to get PowerBuilder 9 to stop choking on the insert ole control
section. I ended up unregistering three controls...
C:\Windows\system32\tdc.ocx
C:\Windows\system32\mmcndmgr.dll
C:\Windows\system32\mstscax.dll
When I would try to put these controls on a form in the PB10 environment, I
would get the following error...
Insert OLE Control
OLE Control Is Missing Critical Interface 'IPersistStorage'
Good thing I didn't have to dig back too far. There are probably about 400+
controls in my list.
So I'm able to add my DBI controls again. However, I have noticed that if I
start to scroll through the whole list of insertable controls, at some point
after browsing down to about the middle of the list, PB does crash again.
I'm wondering if PB9 and earlier had some type of memory leak, and it would
maybe not necessarily crash on the first bad control it would hit, but that
it would build up until it brought PB down.
I'm going to keep checking through my control list and see if I can possibly
dig other bad entries out of the list. The good news is I can insert ole
controls again in the PB9 environment.
Thanks for the help.
Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN
"Bruce Armstrong [TeamSybase]" <NOCANSPAM_br...@teamsybase.com>
wrote in message news:c9djq314rjq07n20m...@4ax.com...
I was able to determine that if I selected one of the java wrappers for
(msjava.dll), PB would crash. This was actually only in PB7. PB8 and
higher worked just fine. In going through the registry I determined that
the InprocServer32 line just had msjava.dll. I went ahead and put the
entire path into that line. So the default line now says
"C:\WINDOWS\system32\msjava.dll"
Once I updated that info, PB7 stopped crashing. So in all my tests from PB7
up to PB10.5, I think I have cleared up where the errors have been coming
from.
I was actually able to reregister the controls that were initially causing
the problem. After multiple crashes, restarts and form tests, it looks like
I have cleared up this issue now.
Hope these posts are able to help somebody else in the future. Thanks again
for the heads up Bruce.
Jeff Gibson
Intercept Solutions - Sybase SQL Anywhere OEM Partner
Nashville, TN
"Jeff Gibson" <jgi...@interceptsolutions.com> wrote in message
news:47ab3398@forums-1-dub...