View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0021915 | Lazarus | LCL | public | 2012-05-02 09:33 | 2013-04-04 10:13 |
Reporter | ocean | Assigned To | Bart Broersma | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Platform | Win32 | ||||
Product Version | 1.1 (SVN) | ||||
Summary | 0021915: Loading icon problem | ||||
Description | Tried Lazarus-1.1-37117-fpc-2.6.1-20120501-win32.exe Image1.Picture.Icon.Handle := LoadIcon(0, IDI_QUESTION); This doesn't work anymore? I get some resource not found exception. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | - | ||||
Widgetset | Win32/Win64 | ||||
Attached Files |
|
duplicate of | 0024222 | closed | Paul Ishenin | Incorrect results given by LoadIcon, LoadCursor and LoadBitmap functions in a Windows environment. |
|
Perhaps a small test project would help with repeating tests? |
|
Works fine in 0.9.30.4 & 2.6.0. It's easy to test, just add Timage to form, that code and uses Windows; |
2012-05-02 10:53
|
|
|
Instead of telling us that... why not just upload the project. It makes it much more repeatable. Attached project works for me. Compile, run, press button. Hope that is what you meant. Lazarus x86 windows, r37131, FPC fixes 2.6 Lazarus x64 windows, r37131, FPC trunk r21191 |
|
Works fine in SVN trunk FPC + SVN trunk Lazarus |
|
Yes and it works here too. Only difference is I had "uses Windows" first. uses Windows, Classes, SysUtils, ... Sample fails here. |
|
Is there something I'm missing? Another similar problem, when I have moved Windows AFTER. This code compiles fine: uses Windows, Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; var bmp: TBitmap; begin bmp:=TBitmap.create; end; This fails to compile: uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, Windows; var bmp: TBitmap; begin bmp:=TBitmap.create; end; unit1.pas(35,15) Error: identifier idents no member "create" unit1.pas(35,15) Fatal: Syntax error, ";" expected but "identifier CREATE" found |
|
TBitMap now points to Windows.TBitMap. Please ask questions on the forum or mailinglist. |
|
Works fine here too even without modifying the attached source code. Laz IDE SVN 37206 FPC 2.7.1 SVN 21248 Windows 7 Ultimate 32bit |
2012-05-07 07:27
|
|
2012-05-07 07:28
|
|
|
Well it certanly does not work here. Try my attachment. See also attached screenshot of the error. SVN 37117, FPC 2.6.1 |
|
Please continue in 0024222 and close this one. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-02 09:33 | ocean | New Issue | |
2012-05-02 09:33 | ocean | Widgetset | => Win32/Win64 |
2012-05-02 10:14 |
|
Note Added: 0059181 | |
2012-05-02 10:44 | ocean | Note Added: 0059182 | |
2012-05-02 10:53 |
|
File Added: bug21915.zip | |
2012-05-02 10:56 |
|
Note Added: 0059183 | |
2012-05-02 11:15 | Anton Kavalenka | Note Added: 0059184 | |
2012-05-02 11:25 | ocean | Note Added: 0059185 | |
2012-05-06 07:44 | ocean | Note Added: 0059290 | |
2012-05-06 13:11 | Bart Broersma | Note Added: 0059300 | |
2012-05-07 04:26 | goldenfox | Note Added: 0059328 | |
2012-05-07 07:27 | ocean | File Added: Bug21915_2.zip | |
2012-05-07 07:28 | ocean | File Added: Errormessage.jpg | |
2012-05-07 07:29 | ocean | Note Added: 0059331 | |
2013-04-04 00:46 | Bart Broersma | LazTarget | => - |
2013-04-04 00:46 | Bart Broersma | Note Added: 0066792 | |
2013-04-04 00:46 | Bart Broersma | Relationship added | duplicate of 0024222 |
2013-04-04 00:46 | Bart Broersma | Status | new => resolved |
2013-04-04 00:46 | Bart Broersma | Resolution | open => duplicate |
2013-04-04 00:46 | Bart Broersma | Assigned To | => Bart Broersma |
2013-04-04 10:13 | ocean | Status | resolved => closed |