Contributions
Re: AQtime 8.71 does not start C++Builder 10.2 application
I posted the other day about a similar problem, but in my company, we share AQTime licenses, and some developers can run from inside AQTime, and others have to attach to the running app they are instrumenting. Since we are supposed to all work eith the same tools and permissions, this is a conundrum. When AQTime fails to run the app from inside, the app appears in task manager, but is not running. The only correlation we have found so far between the working and not working AQTimes is that AQTime seems to work for the developeres who installed it ab out a year ago, and not for the recent installations, even though it is the same version for everybody. One significant thing that happened in between is that our company installed some "privilege management software", but it was installed for everybody and with the same privileges. So currently,we are at a loss to understand the difference. We just tried with a barebone WIn32 application (the default project in VisualStudio 2015). When AQTime fails to run, it stops loading dlls after ntdll.dll (the first dll loaded after the executable file under scrutiny) . When it runs OK, it loads about 3 dozen dlls after ntdll.dll6 years agoPlace AQtime QuestionsAQtime Questions2KViews0likes1Commentrunning inside AQTime vs attaching to running process
We are a group of develoipers, working on the same product with the same development tools and the same build process. We run our Unit Test executable in AQTime to compute code coverage. But something strange is happening to a few of the developers: they can only get the results if they attach AQTime to the running process (executable of Unit Tests). If they try to start the run from inside AQTime, it exits almost immediately and does not return any coverage results. There is a pause point at the beginning of our UT executable, and that point is not even reached when running from inside AQTime. For the rest of developers, including myself, AQTime works fine whether we start the run from inside AQTime or attach it to the running process. Since, as I said, our development environments, permissions, etc... are theoretically identical, does anybody know what could cause this very annoying discrepancy?6 years agoPlace AQtime QuestionsAQtime Questions2.2KViews0likes1CommentRe: Trying to use COM control to attach to a running ptocess
Made some progress. Turns out that using "TakeSnapshot" rather than "get_Results" seems to work better. I still have a problem syncing my 2 apps with AQTime: for example, how can I know when AQTime is finished "getting results" or "exporting results to xml file"? My workaround for now is to add delays, but I wish (and hope there is) there was a better solution than the software equivalent of "capacitive engineering".7 years agoPlace AQtime QuestionsAQtime Questions1.5KViews0likes0CommentsTrying to use COM control to attach to a running ptocess
I am trying to control AQTime via a COM program. This works fine when I use an aqt project, load it and run it using the Integration Manager. However, when I try to do the same thing by attaching to a running process, the results of the profiler (in my case, the Light Coverage Profiler) are always empty. But if I do the same set of steps inside the AQTime GUI (and also attach to a running process) , I get the results I expect. The running process is a Java process that calls a C application. When I attach the process in the GUI, I get a warning message: "AQtime cannot profile Java code by attaching to a process. Only native code will be profiled". I click OK, and all goes well after that. Could this dialog be the difference between running inside the GUI and running through the COM interface? I only get S_OK from my COM calls.7 years agoPlace AQtime QuestionsAQtime Questions1.5KViews0likes1CommentRe: I am trying to add several source files to a profiling area in C++ in Visual Studio2015.
Actually, I solved my problem, but I'm not 100% sure why: The key was toreset the two CComPtr inside the loop. Not sure why, but I am not a COM expert: CComPtr <IaqCOMAccessAreaItem> areaValue CComPtr <IaqCOMAccessDbgSymbol> SrcFileSymbol; ...... for (long j = 0; j < itemCount; j++) { areaValue = 0; SrcFileSymbol = 0; hr = modObject->get_Item(dtSourceFile, j, &SrcFileSymbol); SrcFileSymbol->get_FullName(&FullName); if (isFileNameOfInterest(FullName, listFileNames)) { hr = aqArea->AddItem(SrcFileSymbol, &areaValue); } } Thanks to all for the suggestions.7 years agoPlace AQtime QuestionsAQtime Questions4.1KViews1like0CommentsRe: I am trying to add several source files to a profiling area in C++ in Visual Studio2015.
The link to the VB script I am trying to mimic in VS2015 C++ is: https://support.smartbear.com/viewarticle/43119/#ID0ERKAE And it is NOT the app that crashes. It is the program that tries to add a second file to the profiling area in the AQTime project. I must be doing something dumb, but it's not obvious (to me) after staring at and debugging the code for a while. Thanks for any help7 years agoPlace AQtime QuestionsAQtime Questions4.2KViews0likes2CommentsI am trying to add several source files to a profiling area in C++ in Visual Studio2015.
I tried to mimic the VB script example, but my program always crashes when I try to add a second item to my created area. If I only add one item, it works fine. Does anybody have a C++ VS2015 example for adding items to an area using Area Manager? My code looks like this: for (long i = 0; i < modCount; i++) { long itemCount; BSTR FullName = 0;; hr = DebugInfoManager->get_Module(i, &modObject); hr = modObject->get_ItemCount(dtSourceFile, &itemCount); for (long j = 0; j < itemCount; j++) { CComPtr <IaqCOMAccessDbgSymbol> SrcFileSymbol; hr = modObject->get_Item(dtSourceFile, j, &SrcFileSymbol); SrcFileSymbol->get_FullName(&FullName); if (isFileNameOfInterest(FullName, listFileNames)) { hr = aqArea->AddItem(SrcFileSymbol, &areaValue); <== crashes the second time around } } } Thanks in advanceSolved7 years agoPlace AQtime QuestionsAQtime Questions4.2KViews0likes4Comments