View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005460 | JEDI VCL | 00 JVCL Components | public | 2011-01-17 22:15 | 2011-01-28 01:15 |
Reporter | grubste | Assigned To | jfudickar | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | ||||
Summary | 0005460: Warning W1058 for all calls to NameThread(ThreadName) | ||||
Description | After recent changes (probably) to code regarding thread handling, all calls in all JVCL components to "NameThread(ThreadName)" raise warning W1058 "implicit string to ansistring conversion with possible data loss". | ||||
Steps To Reproduce | Use the full JVCL daily revision package and the installer und compile under unicode aware IDE (D2009+). | ||||
Additional Information | For all occurrences see screenshot. | ||||
Tags | No tags attached. | ||||
2011-01-17 22:15
|
|
|
The source of the evil might be in JvTypes.pas and the definition of the methods and properties of the class procedure TJvCustomThread: type TJvCustomThread = class(TThread) private FThreadName: String; function GetThreadName: String; virtual; procedure SetThreadName(const Value: String); virtual; public {$IFNDEF DELPHI2010_UP} procedure NameThreadForDebugging(AThreadName: AnsiString; AThreadID: LongWord = $FFFFFFFF); {$ENDIF} procedure NameThread(AThreadName: AnsiString; AThreadID: LongWord = $FFFFFFFF); virtual; property ThreadName: String read GetThreadName write SetThreadName; end; We have a wild mixture of strings and ansistrings here. |
|
Changed in SubVersion. Sorry that I had overseen this. Regards Jens |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-01-17 22:15 | grubste | New Issue | |
2011-01-17 22:15 | grubste | File Added: 2011-01-17_215906.png | |
2011-01-17 22:25 | grubste | Note Added: 0018302 | |
2011-01-22 12:21 | jfudickar | Assigned To | => jfudickar |
2011-01-22 12:21 | jfudickar | Status | new => acknowledged |
2011-01-28 01:15 | jfudickar | Note Added: 0018322 | |
2011-01-28 01:15 | jfudickar | Status | acknowledged => resolved |
2011-01-28 01:15 | jfudickar | Resolution | open => fixed |