Thread-topic: Multithreaded app runs, but not in dubeugger
User-agent: Microsoft-Entourage/11.2.5.060620
I have an app that runs fine from Finder, but when running in the debugger I
get all kinds of strange crashes. It is a multithreaded app written in
Carbon using MPTasks. The code is mature and has been a shipping app for
several years.
Xcode 2.3.
Some of the errors I get are:
[Switching to process 18766 thread 0x3103]
warning: Couldn't raise load state for requested shlib: "Foundation" for
breakpoint 12.
(gdb) continue
Program received signal: "EXC_ARITHMETIC".
It dies on this line:
pTaskInfo->mEndTime = AddDurationToAbsolute (kDurationMillisecond * 60000 *
pTaskInfo->mUpdateFrequency, UpTime());
mUpdateFrequency is 5
Note that the crash point depends on the breakpoint which is currently about
5 lines before this. If I move the breakpoint or remove it altogether, it
works fine.
Does the Xcode debugger not like thread too well?
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden
This email sent to email@hidden