View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002651 | JEDI VCL | 00 JVCL Components | public | 2005-02-17 12:14 | 2005-02-18 06:12 |
Reporter | anonymous | Assigned To | wapostma | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | 3.00 | |||
Summary | 0002651: Latest Cvs Version - Access Violation at Designtime in TJvgLabel paint code - jvglabel.pas | ||||
Description | Problem reported by Warren Postma: Jvglabel works fine until you put it into the TTabSheet of a TPageControl. You can paste it onto an empty Form, cut it, then paste it inside the TTabSheet and boom, access violations, ad nauseum, which kills Delphi's IDE essentially. ... See suggested patch in Additional Information - someone please evaluate if this is the right way to patch this issue. | ||||
Additional Information | There is a designtime access violation, one you can't get rid of that basically brings Delphi down with it, if you put a JvgLabel onto your form, then cut it, then paste it into a page of a tab control. I don't know *why* but here's the evil code: A patch which I am not sure if it's the right patch, at JvgLabel.pas, circa line 900: if (Assigned(FTextureBmp) or (floTransparentFont in Options)) and (CurrTextStyle <> fstPushed) then begin {Fixes access violation! -WPostma.} if Assigned(FTextureMask) then begin BitBlt(FTargetCanvas.Handle, 0, 0, FTextureMask.Width, FTextureMask.Height, FTextureMask.Canvas.Handle, 0, 0, SRCPAINT); end; end; In the case above, it checks if FTextureBmp is assigned and then ASSUMEs that FTextureMask is assigned. I am not sure why this particular bug is triggered the way it is triggered, but could someone with more knowledge of the component test my fix, and see if there is a better one? I have created a mantis issue for this one. Regards, Warren | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2005-02-17 12:14 | anonymous | New Issue | |
2005-02-18 06:10 | anonymous | Note Added: 0006516 | |
2005-02-18 06:11 | wapostma | Status | new => assigned |
2005-02-18 06:11 | wapostma | Assigned To | => wapostma |
2005-02-18 06:12 | wapostma | Status | assigned => resolved |
2005-02-18 06:12 | wapostma | Fixed in Version | => 3.00 |
2005-02-18 06:12 | wapostma | Resolution | open => fixed |
2005-02-18 06:12 | wapostma | Note Added: 0006517 |