I haven't had this happen to any of my programs (compiled with D7 and
running on Vista and Win 7), although I don't know if any of my users
are x64. Here's something I found online:
"I don't think this issue has anything to do with Visual Studio
actually; I believe this must be some Delpi-related issue. As far as
I know this message only exists in Delphi runtime, i.e. it is not an
OS- message. The problem is most probably that Delphi runtime calls
the SetForegroundWindow function when it activates a new form. And
this function fails because the behavior of this function was changed
in Vista (and above), especially if UAC is activated, but good old
Delphi does not expect this function to fail, and throws an
exception. This is all just my guess of course. "
If this is correct, then one possible solution would be to compile
with Delphi XE2 and see if it happens with that.
Another thing to try would be for the user to play around with
compatibility settings and see if having it run in XP mode helps.
Perhaps it would help to surround the suspected area with "try ...
except ... on exception" to display the exact exception.message that
is occurring, might give you some more info to track it down.
FYI, it looks like EOSerror is only raised in one place in both D7
and XE2, in SysUtils.pas (System.SysUtils.pas for XE2). This might
help track it down (e.g. compile a test version of your software
using a modified SysUtils.pas that displays an informative message
when EOSerror is raised).
At 10:41 AM 6/19/2012, Chuck Belanger wrote:
Hello:
I use MadExcept to send me error reports from my 60 or so users of a
program that does have a lot of controls. One particular user on
loading her Dell laptop (Windows NT New Tablet PC x64 Service Pack 1
build 7601) is getting this error repeatedly, so much so that the
program cannot load. I have seen this error rarely and it does not
stop the loading of the program for other users.
I am using Delphi 2007 to compile the program.
Here is an example error report, at least the top part of one. If
you want more information from the report, I can supply that. From
my reading some internet messages, it seems that this is an issue
about running out of window handles. Yes? Any way around this error?
Known issues with the Dell OS variation? Other apps on the Dell I
can shut down? Or, is the user just going to have to get another computer?
Thank you for any information you can provide.
Chuck Belanger
date/time : 2012-06-18, 19:32:22, 135ms
computer name : ISABELSANCHEZ
user name : ISABEL SANCHEZ <admin>
registered owner : ISABEL SANCHEZ / Microsoft
operating system : Windows NT New Tablet PC x64 Service Pack 1 build 7601
system language : Spanish
system up time : 3 minutes 5 seconds
program up time : 1 minute 54 seconds
processors : 4x Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
physical memory : 2584/4001 MB (free/total)
free disk space : (C:) 415.54 GB
display mode : 1920x1080, 32 bit
process id : $1ba4
allocated memory : 108.73 MB
executable : ProfViewer.exe
exec. date/time : 2012-06-18 17:19
version : 2.2.0.249
compiled with : Delphi 2006/07
madExcept version : 3.0h
callstack crc : $708c4126, $b8999865, $91175c23
count : 2
exception number : 10
exception class : EOSError
exception message : A call to an OS function failed.
main thread ($1ba8):
0046062c +070 ProfViewer.exe SysUtils RaiseLastOSError
004605b5 +005 ProfViewer.exe SysUtils RaiseLastOSError
004d0c10 +130 ProfViewer.exe Controls TWinControl.CreateWnd
00499e56 +022 ProfViewer.exe StdCtrls TCustomEdit.CreateWnd
007ec4f9 +005 ProfViewer.exe
wwdbedit TwwCustomMaskEdit.CreateWnd
007ec541 +005 ProfViewer.exe
wwdbedit TwwDBCustomEdit.CreateWnd
004d0fee +016 ProfViewer.exe
Controls TWinControl.CreateHandle
004d4994 +01c ProfViewer.exe
Controls TWinControl.HandleNeeded
004d49a1 +005 ProfViewer.exe Controls TWinControl.GetHandle
004d4b0d +009 ProfViewer.exe
Controls TWinControl.GetClientRect
004cc114 +00c ProfViewer.exe
Controls TControl.GetClientHeight
007ec3f2 +00a ProfViewer.exe
wwdbedit TwwCustomMaskEdit.SetEditRect
007eb652 +022 ProfViewer.exe
wwdbedit TwwDBCustomEdit.CMFontChanged
here's another
allocated memory : 100.19 MB
executable : ProfViewer.exe
exec. date/time : 2012-06-18 17:19
version : 2.2.0.249
compiled with : Delphi 2006/07
madExcept version : 3.0h
callstack crc : $5c919ec4, $cef661f7, $82643845
count : 2
exception number : 12
exception class : EReadError
exception message : Error reading JvWizard1.ButtonStart.Width: A
call to an OS function failed.
main thread ($1ba8):
00477fca +0d6 ProfViewer.exe Classes HandleException
004781f5 +1e5 ProfViewer.exe Classes TReader.ReadProperty
00477ae9 +015 ProfViewer.exe Classes TReader.ReadDataInner
00477acb +067 ProfViewer.exe Classes TReader.ReadData
0047ca29 +001 ProfViewer.exe Classes TComponent.ReadState
004cb9e5 +02d ProfViewer.exe Controls TControl.ReadState
004cf991 +025 ProfViewer.exe Controls TWinControl.ReadState
006c4e1f +00b ProfViewer.exe JvWizard 2398 +1
TJvWizardCustomPage.ReadState
00477943 +11f ProfViewer.exe Classes TReader.ReadComponent
00477b5d +089 ProfViewer.exe Classes TReader.ReadDataInner
0047895c +1d8 ProfViewer.exe
Classes TReader.ReadRootComponent
00475bd2 +032 ProfViewer.exe Classes TStream.ReadComponent
00471837 +057 ProfViewer.exe
Classes InternalReadComponentRes
004719c1 +079 ProfViewer.exe Classes InitComponent
00404f65 +01d ProfViewer.exe System 562 +0 @AfterConstruction
00404b64 +010 ProfViewer.exe System 562 +0 TObject.Create
_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi