On 28 Nov 2017, at 1:52 pm, Allan Udy via 4D_Tech <[email protected]> wrote: > > HI, > > A while back I got hold of the v15 '4D Debug Log Reader' database in order to > view some of 4D's Low Level debugging Log files. It helped me a lot at the > time. > > I've still got the Read Me pdf but it doesn't say where this came from or who > wrote it, and I've now forgotten. > > The application has to parse the Plugins folder of the source database that > you a're debugging, in order to correctly identify the actual command names > used by the Plugins. > > Having upgraded this to v16R4, I'm now having problems looking at the log > files from the v16 application that we're debugging. > > There's a method in the code called 'RSRC_Select' which basically goes > through the plugin folder and parses all the commands: > > $vL_NumPlugins:=Size of array($aT_Bundle)` How many .bundle Plugins are > there > > If ($vL_NumPlugins>0) > > $vL_PluginID:=3 <- HERE'S THE QUESTION -- WHY IS THIS 3 > > For ($vL_PluginIndex;1;$vL_NumPlugins) > If (RSRC_Parse > ($vT_Folder+$aT_Bundle{$vL_PluginIndex};$vL_PluginID)) > $vL_PluginID:=$vL_PluginID+1 > End if > End for > End if > > > Does anyone (the author?) know WHY $vL_PluginID is initialised to 3 at the > start of the loop through the external plugins....?
That would be me. This was always a tricky piece of the puzzle. Unfortunately there was no way (that I could find) for determining which plugin was allocated which number in the debug logs. The best I could determine was that it seemed to load them in alphabetical order and it usually seemed to start from 3, although not always. I think there used to be two "plugins" that were built-in to 4D - I want to say one of them was the OLE Tools - not sure what the other one was. I deduced rightly or wrongly that 4D was allocating these numbers first. It's entirely possible that this has changed in more recent versions. If it seems to be starting from one now, it would certainly be safe to change it in the code. You can also change the numbers in the front-end by double-clicking on them, but the log files would ned to be re-parsed after you've changed any numbers. cheers Justin Carr Genie Solutions ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

