PeterPanino / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
0 stars 0 forks source link

All application cursors get lost when compiling in RELEASE mode #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1. Create a form with a THTMLViewer and a label.
2. Set the label's cursor to, say, crHourGlass.
3. In the FormCreate method, set the HTMLViewer's string to
   something, e.g. 
   HTMLViewer1.LoadString('1234567890').
4. Compile and run the program in DEBUG mode. The form is shown,
   and the label uses the crHourglass cursor. Fine.
5. Compile and run the program in RELEASE mode. The form is shown,
   and the label does NOT use the desired cursor, but crDefault.
   This happens with ALL cursors of the whole application.

What is the expected output?
- The resulting program should behave identical in both DEBUG and
  RELEASE mode and should use the DESIRED cursors. The previous
  HTMLViewer version did NOT have this problem and behaved
  correctly.

Which version of the product are you using? Which compiler version are you 
using? On which operating system?
- HtmlViewer113-r306
  (HtmlViewer112-r254 was OK)
- Delphi XE2 (32 Bit)
- Windows 7 (64 Bit)

Original issue reported on code.google.com by weidner....@t-online.de on 7 Oct 2012 at 9:10

GoogleCodeExporter commented 9 years ago
Andreas,

I cannot reproduce this error with D2007 and D2009. 
Could you please post your test program's source code. 
Maybe I missed something...

Thanks in advance
OrphanCat

Original comment by OrphanCat on 7 Oct 2012 at 3:48

GoogleCodeExporter commented 9 years ago
Hello OrphanCat,

please find attached the minimum project files.

With these, the behaviour under XE2/32bit+Win7/64bit is A BIT different than 
described previously:
 1. For my last post, I created a new Delphi form with the corresponding
    menu and proceeded from there, getting the result from my last posting
    (DEBUG mode OK, RELEASE mode not).
 2. This time, I did the same, but just for testing, I quit Delphi and
    deleted all the files but the three attached ones, leaving Delphi
    to create the 'dproj' file itself. This now results in the cursor
    ALWAYS being crDefault, no matter whether DEBUG or RELASE mode is
    chosen.

If NO string is loaded in the FormCreate method, the cursor stays as desired 
(crHourGlass).

Thanks for looking into the matter,
Andreas Weidner

Original comment by weidner....@t-online.de on 9 Oct 2012 at 8:16

Attachments:

GoogleCodeExporter commented 9 years ago
Could you please try the repository at 
https://github.com/BerndGabriel/HtmlViewer/tree/HtmlViewer11 and see if the 
problem persists.  I haven't been able to reproduce it here.

Original comment by jpmug...@suddenlink.net on 24 Oct 2012 at 10:26

GoogleCodeExporter commented 9 years ago
(1) Unfortunately, try as I might, I don't know how to use SVN in Delphi - I 
seem to be too stupid for that. Therefore, I apparently cannot use 
'repositories', but need some installation procedure that I can understand...

(2) Fortunately, since two days, the mentioned cursor problems do NOT persist 
anymore. Though I did neither update Delphi nor THTMLViewer, the cursors now 
work as expected. It's a pity that I do not know WHY, but let's just hope that 
it will always work from now on (hope springs eternal).

Thanks for the help...

Original comment by weidner....@t-online.de on 28 Oct 2012 at 5:17

GoogleCodeExporter commented 9 years ago
Andreas,

I'm glad to hear, that your problems vanished ;)
Although it is dissatisfying not to know the reason why they vanished.
Hopefully this is a stable situation :)

OrphanCat

Original comment by OrphanCat on 30 Oct 2012 at 6:22