Do you, by chance, still have the old taskbar support parcel loaded? Which version of VisualWorks are you using? _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Sloppy of me -- VW7.7
On 01/10/2010 3:01 PM, Boris Popov, DeepCove Labs wrote:
-- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 [hidden email] Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
This problem isn't new in 7.7/7.7.1, it also happens in 7.6. Execute
"ProfilerCore initialize" before running a profile. Alan Knight mentioned this solution in July on the other list. There's a problem with a cache of wrapped methods in the profiler which is not updated when code changes. You can also change GetWindowMetrics such that it doesn't call a primitive, but answers a fixed rectangle instead (don't let this code leak into production though, it's just a workaround to make the image usable after the error occurs - you'll have to recompile the method programmatically). HTH, Joachim Am 01.10.10 21:01 schrieb Boris Popov, DeepCove Labs: > Do you, by chance, still have the old taskbar support parcel loaded? Which > version of VisualWorks are you using? > > -Boris (via BlackBerry) > > ----- Original Message ----- > From: [hidden email] <[hidden email]> > To: VWNC, <[hidden email]> > Sent: Fri Oct 01 11:52:11 2010 > Subject: [vwnc] Getting exception on GetWindowMetrics -- Win32SystemSupport... > > Whenever I try and run the TimeProfiler (just in the last few weeks), > I get > an exception in the GetWindowMetrics or GetActiveWindow method of > Win32SystemSupport. > > The exception is of the form > exceptionOccurred #(12345667 23987234876) > > The numbers change. Once I get this, I cannot open a debugger window as > that gets the same > exception. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
The ProfilerCore-initialize did not do it for me. I had to replace both
GetActiveWindow and GetSystemMetrics to get rid of the exceptions. Not nice! I will look at wrapping the profiler in something to change those methods (or what they do internall) and then change them back :( On 01/10/2010 3:34 PM, Joachim Geidel wrote: > This problem isn't new in 7.7/7.7.1, it also happens in 7.6. Execute > "ProfilerCore initialize" > before running a profile. Alan Knight mentioned this solution in July on the > other list. There's a problem with a cache of wrapped methods in the > profiler which is not updated when code changes. > > You can also change GetWindowMetrics such that it doesn't call a primitive, > but answers a fixed rectangle instead (don't let this code leak into > production though, it's just a workaround to make the image usable after the > error occurs - you'll have to recompile the method programmatically). > > HTH, > Joachim > > Am 01.10.10 21:01 schrieb Boris Popov, DeepCove Labs: > >> Do you, by chance, still have the old taskbar support parcel loaded? Which >> version of VisualWorks are you using? >> >> -Boris (via BlackBerry) >> >> ----- Original Message ----- >> From: [hidden email]<[hidden email]> >> To: VWNC,<[hidden email]> >> Sent: Fri Oct 01 11:52:11 2010 >> Subject: [vwnc] Getting exception on GetWindowMetrics -- Win32SystemSupport... >> >> Whenever I try and run the TimeProfiler (just in the last few weeks), >> I get >> an exception in the GetWindowMetrics or GetActiveWindow method of >> Win32SystemSupport. >> >> The exception is of the form >> exceptionOccurred #(12345667 23987234876) >> >> The numbers change. Once I get this, I cannot open a debugger window as >> that gets the same >> exception. > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 sip:[hidden email] Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Joachim Geidel
ProfilerCore uses class instances variables, so each subclass must be
initialized: ProfilerCore allSubclasses do: [: cl | cl initialize ]. Am 01.10.2010 21:34, schrieb Joachim Geidel: > This problem isn't new in 7.7/7.7.1, it also happens in 7.6. Execute > "ProfilerCore initialize" > before running a profile. Alan Knight mentioned this solution in July on the > other list. There's a problem with a cache of wrapped methods in the > profiler which is not updated when code changes. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
That worked -- great!
Thank-you On 02/10/2010 5:08 AM, Holger Kleinsorgen wrote: > ProfilerCore uses class instances variables, so each subclass must be > initialized: > > ProfilerCore allSubclasses do: [: cl | cl initialize ]. > > Am 01.10.2010 21:34, schrieb Joachim Geidel: >> This problem isn't new in 7.7/7.7.1, it also happens in 7.6. Execute >> "ProfilerCore initialize" >> before running a profile. Alan Knight mentioned this solution in July on the >> other list. There's a problem with a cache of wrapped methods in the >> profiler which is not updated when code changes. > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Dennis Smith +1 416.798.7948 Cherniak Software Development Corporation Fax: +1 416.798.0948 509-2001 Sheppard Avenue East [hidden email] Toronto, ON M2J 4Z8 sip:[hidden email] Canada http://www.CherniakSoftware.com Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |