Plugin and starting application with/without parameters

Nicolas D.

Member²
Hi Marco,

a very strange bug I do not understand. It happen on the 64 bits version only.

I have 2 plugins loaded in addition to the standard one:
Our internal plugin, and the Visual Studio Plugin Demo. (And that look important to have 2 in that case)

(a) If I run plsqldev.exe directly, no issue. Both plugins works.
(b) If I run plsqldev.exe userid=.... (To connect to the DB Directly), my internal plugin do not load (!). But the Demo work.

Even better, if I use my former "Relay" (the DLL I did build from Embarcadero C++ Builder to load my VS Studio plugin on v11 64 bits):

(c) If I run plsqldev.exe directly, no issue. Both plugins works.
(d) If I run plsqldev.exe userid=.... (To connect to the DB Directly), the Demo plugin do not load (!!). But my plugin work properly (as it get thru the Relay)

I did try to run with DEBUGPLUGINS to get something, but I only see that the plugin fail to load someway

Log when running case (c):
...
00:00:33.533 PlugIn openActiveQueryBuilder.dll
00:00:33.554 PlugIn loaded successfully
00:00:33.554 Active Query Builder
00:00:33.554 PlugIn.OnCreate - start()
00:00:33.555 PlugIn.OnCreate - end()
00:00:33.555 PlugIn openPLSQLDeveloperVSDemoPlugIn.dll
00:00:33.560 PlugIn loaded successfully
00:00:33.560 Visual Studio Demo PlugIn - x64
00:00:33.561 PlugIn.OnCreate - start()
00:00:33.561 PlugIn.OnCreate - end()
00:00:33.561 SYS_Version() [Visual Studio Demo PlugIn - x64]
(... last line repeating multiple times)
00:00:33.582 PlugIn openplsqldoc.dll
00:00:33.589 PlugIn loaded successfully
00:00:33.590 PL/SQL Documentation (plsqldoc)
00:00:33.590 PlugIn.OnCreate - start()
00:00:33.590 PlugIn.OnCreate - end()
...

Log when running case (d):
...
00:00:03.447 PlugIn openActiveQueryBuilder.dll
00:00:03.465 PlugIn loaded successfully
00:00:03.465 Active Query Builder
00:00:03.465 PlugIn.OnCreate - start()
00:00:03.465 PlugIn.OnCreate - end()
00:00:03.466 PlugIn openPLSQLDeveloperVSDemoPlugIn.dll
00:00:03.470 PlugIn openplsqldoc.dll
00:00:03.477 PlugIn loaded successfully
00:00:03.477 PL/SQL Documentation (plsqldoc)
00:00:03.477 PlugIn.OnCreate - start()
00:00:03.478 PlugIn.OnCreate - end()
00:00:03.478 SYS_Version() [PL/SQL Documentation (plsqldoc)]
...

I am pretty puzzle on what could generate that.
Any idea?
For now I will keep using my relay to overcome the issue.
 
Marco,

sent an email to support@... with 3 copies of the VS demo plugin so you can reproduce it your end and hopefully find what is going on.

For Now I with without the relay, but with renamed Demo DLL to load before my main plugin, causing the demo to fail to load and my plugin to work. Seems to impact only the first VS Studio plugin that load, when the parameter is set. Weird.

Thanks
 
I did hope that you could find something using the 3 demo copy I did send you in email.
Look like a sort of memory issue but hard to know.

I do not know what happen between those 2 lines of the debug
PlugIn openxxxx.dll
PlugIn loaded successfully

Maybe put a bit more of debug on next release on the reason why a DLL would fail to register as a plugin would give us a hint?
 
Still no luck with 12.0.2

Still have first VS plugin that won't load, so I still need to have the demo plugin loading first so it fail and let the real plugin come next and work fine.
 
Back
Top