View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005484 | JEDI VCL | 00 JVCL Components | public | 2011-02-15 22:45 | 2011-02-16 11:06 |
Reporter | Gerold | Assigned To | obones | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | ||||
Summary | 0005484: Exception in NameThreadForDebugging | ||||
Description | After installing latest JCL/JVCL 2011-02-15 and compiling my program I allways got en EExternalException in JvType "NameThreadForDebugging". I saw that the line //if IsDebuggerPresent then is commeted out. Is this OK? I use XPBar in my program. TJvXPFadeThread.Execute calls NameThread(ThreadName) TJvCustomThread.NameThread calls NameThreadForDebugging(aThreadName, AThreadID) And then I got the exception. | ||||
Additional Information | D6 with all updates and latest JCL/JVCL | ||||
Tags | No tags attached. | ||||
|
Could you create a sample to show the behaviour? |
|
This my sample file. Just load it into the IDE (I use D6) and click on the JvXPBar. Than I got an EExternalException error. I noticed that I only got this error while I run the program within the IDE. I dont got the error when running the EXE only. I dont understand what is it good for the raise that exception RaiseException($406D1388, 0, sizeof(ThreadNameInfo) div sizeof(LongWord), @ThreadNameInfo); in JvTypes.TJvCustomThread.NameThreadForDebugging |
2011-02-16 07:49
|
Test.7z (302,001 bytes) |
|
That's clearly expected as the ONLY way to name a thread is by raising the exception you pointed at. And it's only raised in the IDE because we trap it explicitely for the naming of the thread to work. Naming a thread makes debugging easier as you have the name in the thread list instead of the thread id. If that annoys you, simply comment out that line. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-02-15 22:45 | Gerold | New Issue | |
2011-02-15 23:49 | jfudickar | Note Added: 0018378 | |
2011-02-15 23:52 | jfudickar | Status | new => feedback |
2011-02-16 07:49 | Gerold | Note Added: 0018379 | |
2011-02-16 07:49 | Gerold | File Added: Test.7z | |
2011-02-16 11:06 | obones | Note Added: 0018380 | |
2011-02-16 11:06 | obones | Status | feedback => resolved |
2011-02-16 11:06 | obones | Resolution | open => no change required |
2011-02-16 11:06 | obones | Assigned To | => obones |