Can't generate reports Or not find?
Up to Bugs & Problems
Can't generate reports Or not find?
Compiling and profiling a C# application for the Windows Mobile 5 Professional (Visual Studio 2005) platform.
Here is output:
Processing directory E:\CSharp Demo\ProfileTest\ProfileTest\bin\Debug
Profiled 13 methods in ProfileTest.exe
Profiling completed: 13 methods were profiled
Application has grown from 8KB to 26KB (231%)
Found no runnable application
No errors or warnings
and running it on the Device.
But the report did not find a directory("\Storage Card", "\SD Card", "\Temp", and "\"),
But run the Demo Application(Bubble.exe) in "\Temp" generate reports.
Why? Hope it Helps.
Here is output:
Processing directory E:\CSharp Demo\ProfileTest\ProfileTest\bin\Debug
Profiled 13 methods in ProfileTest.exe
Profiling completed: 13 methods were profiled
Application has grown from 8KB to 26KB (231%)
Found no runnable application
No errors or warnings
and running it on the Device.
But the report did not find a directory("\Storage Card", "\SD Card", "\Temp", and "\"),
But run the Demo Application(Bubble.exe) in "\Temp" generate reports.
Why? Hope it Helps.
Re: Can't generate reports Or not find?
Hi wangxm,
I have a couple of suggestions. But first let me explain how the report is taken:
The profiler simply changes your Main-method to this:
try { original main content }
finally { make snapshot-report }
Simple, yet efficient. But only if your app actually exit. And remember that mobile apps don’t stop when you close them by clicking their close-box – on a PDA they are simply put into the background.
(Note: the Bubbles-demo is actually coded to do an explicit exit when you tap the screen).
1) My best guess is that your app doesn’t stop and therefore never finish Main and therefore never get to the automatic snapshot-taking part in the inserted finally-code.
2) The opposite could also be the case: if the app is shutdown by brute force (using process kill) then it also won't get a chance to write out a report.
3) If that's not the reason then you could try to reference the runtime-module in your app and place an explicit call to EQATEC.Profiler.Runtime.TakeProfileSnapshot() somewhere in your code that you know will be executed, e.g. in a button-press handler or something. Then you should get a report-file. If you don't then maybe this particular app doesn't have permission to write to \ or \Temp etc, but that's rather unlikely.
4) Lastly, it could be due to a unknown profiler bug.
If none of this helps then please write again. And if it does help, then I'd also like to know what the reason was, so we can improve the profiler in that respect.
regards,
Richard
I have a couple of suggestions. But first let me explain how the report is taken:
The profiler simply changes your Main-method to this:
try { original main content }
finally { make snapshot-report }
Simple, yet efficient. But only if your app actually exit. And remember that mobile apps don’t stop when you close them by clicking their close-box – on a PDA they are simply put into the background.
(Note: the Bubbles-demo is actually coded to do an explicit exit when you tap the screen).
1) My best guess is that your app doesn’t stop and therefore never finish Main and therefore never get to the automatic snapshot-taking part in the inserted finally-code.
2) The opposite could also be the case: if the app is shutdown by brute force (using process kill) then it also won't get a chance to write out a report.
3) If that's not the reason then you could try to reference the runtime-module in your app and place an explicit call to EQATEC.Profiler.Runtime.TakeProfileSnapshot() somewhere in your code that you know will be executed, e.g. in a button-press handler or something. Then you should get a report-file. If you don't then maybe this particular app doesn't have permission to write to \ or \Temp etc, but that's rather unlikely.
4) Lastly, it could be due to a unknown profiler bug.
If none of this helps then please write again. And if it does help, then I'd also like to know what the reason was, so we can improve the profiler in that respect.
regards,
Richard
Re: Can't generate reports Or not find?
Hi Richard :
Thank you for your help.I had fixed the problem.
Indeed using process kill in my Program.so can't generate reports.
But now I have another question, in my Program sql server 2005 Compact Edition used to store data,Version is 3.00.5206.0.my mobile os version is 5.1.422(Internal version is 15633.3.2.0).The save of data, from time to time there Unspecified error [sqlceqp30.dll ]" .
I hope with your help.
best regards.
wangxm
Thank you for your help.I had fixed the problem.
Indeed using process kill in my Program.so can't generate reports.
But now I have another question, in my Program sql server 2005 Compact Edition used to store data,Version is 3.00.5206.0.my mobile os version is 5.1.422(Internal version is 15633.3.2.0).The save of data, from time to time there Unspecified error [sqlceqp30.dll ]" .
I hope with your help.
best regards.
wangxm
Re: Can't generate reports Or not find?
Hi wangxm,
I assume this problem only happens for the profiled version, right? If it also happens in the un-profiled version then it is most likely a problem in your own code.
If it is caused by the profiling then I would ask you to mail me (at tools@eqatec.com) the full error message with details if possible (stack-trace etc) and the profiled DLL, or entire app, that is causing this error. Maybe I'm able to help pinpoint the problem simply by looking at the profiled assemblies, and maybe not.
best regards,
Richard
I assume this problem only happens for the profiled version, right? If it also happens in the un-profiled version then it is most likely a problem in your own code.
If it is caused by the profiling then I would ask you to mail me (at tools@eqatec.com) the full error message with details if possible (stack-trace etc) and the profiled DLL, or entire app, that is causing this error. Maybe I'm able to help pinpoint the problem simply by looking at the profiled assemblies, and maybe not.
best regards,
Richard
Re: Can't generate reports Or not find?
Hi Richard,
You misunderstood what I meant by,the question is still existing, there is nothing to do with the profiled. Did you met the unspecified error [sqlceqp30.dll] before.
You misunderstood what I meant by,the question is still existing, there is nothing to do with the profiled. Did you met the unspecified error [sqlceqp30.dll] before.
Re: Can't generate reports Or not find?
Ahh, okay. I'm sorry, but I don't really have any useful advice to offer you in that case. I've never seen this error myself.
Out of curiosity I just did a google search for "unspecified error sqlceqp30.dll" and actually got a number of results. Looking through those would be my best advice.
Out of curiosity I just did a google search for "unspecified error sqlceqp30.dll" and actually got a number of results. Looking through those would be my best advice.
Powered by
Ploneboard





