Alt+F4 appears to crash preview form
When I press Alt+F4 in a preview form (Report Builder standard dialog,
not my own), I get an access violation, with lovely addresses all 0's.
What might be causing this? I tried assigning an OnKeyDown method to the
ppReport's PreviewForm, but it did not intercept the key. Must I make a
custom previewer to handle this?
TIA.
--
Auto-replies will bounce. To reply to me, remove the "invalid"s from my
address.
not my own), I get an access violation, with lovely addresses all 0's.
What might be causing this? I tried assigning an OnKeyDown method to the
ppReport's PreviewForm, but it did not intercept the key. Must I make a
custom previewer to handle this?
TIA.
--
Auto-replies will bounce. To reply to me, remove the "invalid"s from my
address.
This discussion has been closed.
Comments
runtime on Delphi5 (RB 5.56 and RB 6.01) and D6 (RB 6.01). This was on a
Win 2K machine. Did you receive any AV's prior to this? If you close your
Delphi session and start a new session of Delphi, does the error persist?
What version of RB/Delphi/Windows are you using?
You shouldn't have to make a custom previewer.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thanks for your reply. I have a little more information now. But first an
answer to your question. I did NOT have any AV's prior to this.
I am using RB 5 (latest version thereof, downloaded about a month ago)
and D5. (I am considering upgrading to RB 6 though, but will wait until I
have this problem solved.) I am running Win NT Workstation 4.0, SP3, but
this behavior is reproducible on two different Win95C machines.
My application just consists of a single form and a data module (other
than some reports, none of which are auto-created). The report is invoked
as the result of a button click. When on the preview, if I press Alt+F4,
it closes the calling form (I.i.e.., the whole application), which is NOT
the desired behavior. For that matter, if I just press Alt, the calling
form comes forward and its menu is invoked!
In my custom preview, I tried putting in handling for Alt+F4, but it
doesn't seem to be working. (And I'd rather not be using a custom preview
anyway.)
Thanks in advance for your continued assistance.
In article <8EAE82296ACCD311A039005004E0CAC004767E@DMSERVER>, Jim Bennett
quoth...
--
Auto-replies will bounce. To reply to me, remove the "invalid"s from my
address.