PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-Pierre LEROY on July 24, 2007, 09:31:34 AM

Title: Firefly and PowerBASIC PROFILE statement
Post by: Jean-Pierre LEROY on July 24, 2007, 09:31:34 AM
Hello,

I would like to know if FireFly is compatible with the "PROFILE statement" ?

I try to put the PROFILE statement at the end of the FF_WINMAIN() without any success; the profile report is generated but almost of the "Call Count" are zero ? I don't know why.

Any ideas ?

Thanks,
Jean-Pierre
Title: Re: Firefly and PowerBASIC PROFILE statement
Post by: TechSupport on August 02, 2007, 09:22:59 AM
Hi Jean-Pierre,

The PB Help file states:

"For the best results in executable files, the PROFILE statement should be the last statement executed in the PBMAIN/WINMAIN function."

This would indicate that the Profile should be one of the last statements executed in your program. Therefore, the best place (in FireFly) to put this statement would be in the WM_DESTROY event handler in the main form of your application. I tested this and it does appear to be the place where it should go.