Re: Locking upon printer.BeginDoc




"Jud McCranie" <youknowwhat.mccranie@xxxxxxxxxxxx> wrote in message
news:qs5ed1hhou809see9cnv1bc5qgragn6eae@xxxxxxxxxx
> On Thu, 14 Jul 2005 20:33:38 -0400, Jud McCranie
> <youknowwhat.mccranie@xxxxxxxxxxxx> wrote:
>
>>Why would the following work in a little test program but lock up on
>>BeginDoc in an actual program?
>
> And doing a PrintDialog first doesn't help.
>
> At the moment, I'm stuck! I'm converting a DOS program to Windows and
> I'm near the end. I just finished with about 36 reports, and I was
> checking them on the screen. When I put in the code to print them, it
> locks up. I'm using Delphi 6 pro, update 2, Windows XP home.
>
> The project has 20 forms and 31 units. I'm at a loss as to even how
> to track down the problem other than trying to strip out units until
> perhaps it works.
>

Why not use a reportwriter instead of doing everything yourself?
It may be necessary to move the StringList into a (memory) table
such as kbmMemtable and then print from there. If this can be
done then even freereport should be able to deal with it.
Both, kbmmemtable and freereport, are free or very low cost
shareware components.

PR


.



Relevant Pages

  • Re: Windows XP Pro Locks Up When Hard Drive Crashes...
    ... This drive is a new-build replacement that I got from maxtor, ... So just to make it real clear to everyone my opinion of Maxtor - They suck ... HD and placed it in my gf's computer to see if it will cause her OS to lock ... setting or something in windows on my system that is causing the system to ...
    (microsoft.public.windowsxp.help_and_support)
  • deadlock on SMP machines - perhaps caused by wldap32.dll?
    ... running Windows NT and 2000. ... OwningThread b80 ... ContentionCount 2a ... Scenario B - the "what happened to the malloc lock?" ...
    (microsoft.public.vc.language)
  • SECURITY.NNOV: file locking and security (group policy DoS on Windows 2000 domain)
    ... Windows NT 4.0, ... EXCLUSIVE lock on file. ... The main problem of file locking is this mechanism (at least ... much more descriptive and useful to the administrator. ...
    (Bugtraq)
  • Re: WinXPSP2, Intel Core2Duo, Kernel drivers
    ... Because on an SMP machine CPU 1 will get the lock, ... This is because KeAcquireSpinLockAtDpcLevel on a uni-processor is a NOP. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... Trying to call the routine that uses spinlocks from ISR is not going to ...
    (microsoft.public.development.device.drivers)
  • Re: some little problems and tips
    ... How to Quickly Lock Your Computer and Use Other Windows Logo Shortcut Keys ... XP Start Menu doesn't have Use Personalized Menus option. ... Scroll down to and UNCheck: ...
    (microsoft.public.windowsxp.help_and_support)