AfterExecuteWindow function return value

Gerie

Member
Hi!

I'm trying to write a plug-in in Delphi, that uses the AfterExecuteWindow function. For some reasons the Return value is not 0,1 or 2. It gaves back 1243548 even if the execution finished with error or success.

Have you got any solution?

procedure AfterExecuteWindow(WindowType, Res: Integer);
begin
ShowMessage(IntTostr(Res));
if(Res = 2) then beep;
end;

Gerie
 
Things seem to work for me.

To obtain some more diagnostic information, can you modify the shortcut and add the DEBUGPLUGINS parameter? For example:

"C:\Program Files\PLSQL Developer\plsqldev.exe" DEBUGPLUGINS

Reproduce the problem and send me the debug.txt file that is generated in the PL/SQL Developer directory or in the %APPDATA%\PLSQL Developer directory (e.g. C:\Documents and Settings\\Application Data).
 
Hi!

Here is the debug.txthttp://members.chello.hu/filep.gergely/Debug.txt

But it seems good:

...2009.03.12. 6:35:13 NavigationBookmarks: Backward=0, Forward=0
2009.03.12. 6:35:13 SQLForm ORA-00900: invalid SQL statement
2009.03.12. 6:35:13 PlugInAfterExecute(0)()
2009.03.12. 6:35:15 IDE_GetConnectionInfo() [History Plug-In Gerie]
2009.03.12. 6:35:15 IDE_GetSelectedText() [History Plug-In Gerie]
2009.03.12. 6:35:15 IDE_GetText() [History Plug-In Gerie]
2009.03.12. 6:35:19 PlugInBeforeClose()
2009.03.12. 6:35:19 Destroying TSQLForm
...

Thanks,
Gerie
 
The log looks fine, but after checking your sourcecode again I noticed a "cdecl" is missing from the AfterExecuteWindow declaration. This could give the results you found.
 
Back
Top