BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 7: Access violation at address # in module 'comctl32.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Iwan Oprins
Guest





PostPosted: Tue Feb 08, 2005 9:27 am    Post subject: Delphi 7: Access violation at address # in module 'comctl32. Reply with quote



I have an EXE-application (1,9 MB) made with Delphi 7, but when I add
(for example) a bitbutton or combobox to an existing form I get the
message "Project name.exe raised exception class EAccessViolation with
message 'Access violation at address 5D4E65F8 in module 'comctl32.dll'.
Read of adress FEEEFEEE'. Process stopped".

The message doesn't appear when I start the same application outside
the Delphi 7 IDE.
I have the idea that it has something to do with the available memory,
but how can I solve this, because I couldn't add components to my
application?

Regards,

Iwan Oprins

Back to top
patoche
Guest





PostPosted: Wed Feb 09, 2005 8:48 am    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote



As you get the error in the IDe and not oustide, I guess the problem is
a designing one:

If this error occurs for every control you try to insert on your form,
it's clear that something in your project is corrupt, as not every
Delphi control uses 'comctl32.dll' (in fact, I think no control does)

Maybe you should have a look to the Text version of your form. There
might be
some pieces of code that does not correspond to any control you have on
the form.

Back to top
Maarten Wiltink
Guest





PostPosted: Wed Feb 09, 2005 9:52 am    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote



"patoche" <pmullot (AT) yahoo (DOT) com> wrote

[...]
Quote:
If this error occurs for every control you try to insert on your form,
it's clear that something in your project is corrupt, as not every
Delphi control uses 'comctl32.dll' (in fact, I think no control does)

I think all "common controls" do. Treeview, listview, datetimepicker,
animate, statusbar, toolbar,... richedit? Undoubtedly there are many more.

These are controls that are built into Windows and are simply wrapped to
make them look like VCL controls for your code.

Groetjes,
Maarten Wiltink



Back to top
Iwan Oprins
Guest





PostPosted: Wed Feb 09, 2005 10:27 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

I checked the text version of my form and didn't contain any controls
which are not on my form.
I also uninstalled and re-installed Delphi 7, but I still get the same
problem with this "Access Violation".

Any other suggestions?

Back to top
John E
Guest





PostPosted: Thu Feb 10, 2005 8:38 am    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

Iwan Oprins wrote:
Quote:

The message doesn't appear when I start the same application outside
the Delphi 7 IDE.

1. So does that error come immediately if you start a completely new
Project, only one single TForm1 on it, when you drop some TButtons and
other controls on it? If it does, then there is something messed in your
Delphi or Windows installation.

Quote:
I have an EXE-application (1,9 MB) made with Delphi 7, but when I add

On the other hand, if the problem appears just with this specific
application, then 1,9 MB man? That's nothing!

2. Drop one Form at a time from your project, delete also those PAS and
DFM files from your project folder, so they can't be referenced from
other Forms in your project. Continue dropping Forms, and finally one
Control at a time from that final form, and wait when the error messages
no more appear.

At some point of this haunting you inevitably will find the Form or
Control that is responsible for those error messages. Takes less than an
hour.

Or if you still do not find it, the error still pops up even if your
original Project has been stripped down to the same level as in 1. case.
Well, in that case we ALL have a BIG mystery to think about:)
John E

Back to top
Iwan Oprins
Guest





PostPosted: Thu Feb 10, 2005 1:57 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

With a new project I have no problems.
I have a form where I want to add a bitbutton. Then I get the
errormessage.
I can click on [OK] and the application will run fine.
There was also a moment that I could add a bitbutton, but when I add a
glyph to the bitbutton I get the same error, also with several other
controls.
For example: adding a checkbox and radiobutton: no problem.
When I add a memo-field I also get this error.
If I remove this control again everything is fine again.

I also changed the creation-order of the forms (Projects > Options >
Forms), with no result. Also increasing the stack-size don't solve
this problem.

The application has 25 auto-create forms and 50 available forms (most
frames which are created dynamically).
I have the problem with a real form (no frame) that is directly
created.

Regards,

Iwan Oprins

Back to top
John E
Guest





PostPosted: Thu Feb 10, 2005 10:42 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

Iwan Oprins wrote:
Quote:

With a new project I have no problems.
I have a form where I want to add a bitbutton. Then I get the
errormessage.

You never mentioned your Windows -version, is it XP/W2k/W98?

Nor the history of that exception, when exactly did it start coming.
I quess that you probably do not have a clear, brand new factory
installed XP on your machine. And then you immediately installed D7 on
it, and at once you started to get those AVs?

Often there is some Service Pack update involved. Or newly installed MS
Office application or something, that at the same time updated half of
the Win operating system files. Years back, IE 4.0 setup installed
NT4.0's comctl32.dll version to Win95-machines, causing a lot of
problems.

If you now WILL DO a clean XP/W2k installation, and a clean D7
installation on top of it, you won't see those errors appearing. It just
means a lot of extra work with installations, yet it probably could be
fixed by replacing one of those Win graphic related System files.
You probably have already checked all those possible comctl32.dll
versions there are available for your Windows version?

John E

Back to top
Iwan Oprins
Guest





PostPosted: Wed Feb 23, 2005 3:20 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

I use Windows XP Professional (+ SP2).

Today I did a system recovery (so my computer has the
factory settings). I has orginaly Windows XP Home and
immediately I do the Windows XP Professional Upgrade
(with Service Pack 2) and after that I installed
Delphi 7 Studio (also with the upgrade CD).

After that I installed no other software and dit no
Windows updates.

Then I compile my program and again I get the message
Access violation at address 5D4E65F8 in module 'comctl32.dll'.
Read of address FEEEFEEE.

Other programs run fine, but how can I solve this, because
it is very frustrating that after a real reinstallation of
Windows XP Prof. and Delphi 7 it still doesn't work.

Every suggestion is welcome.
Back to top
Aron S. Smith
Guest





PostPosted: Wed Feb 23, 2005 11:20 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

"Iwan Oprins" <iwan (AT) uitslagen (DOT) nl> wrote


Quote:

Every suggestion is welcome.

I have located some nasty bugs with MadExcept.
http://help.madshi.net/License.htm
http://madshi.bei.t-online.de/madCollection.exe

You seem to have some special exception that trigges only when you run it
inside IDE. I have no glue or estimation how usable help MadExcept will be
able to bring you there.

Hopefully you will report yoir findings to the newsgroups, if you finally
find anything. That will be for a big help for all those other developers
coming behind.
-Aron



Back to top
Iwan Oprins
Guest





PostPosted: Thu Feb 24, 2005 9:30 am    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

Problem is solved now.

I installed also other software (like MS Office 2000) and after that
everything works fine (untill now, but I hope for ever).

Thanks for all tips!
Back to top
Iwan Oprins
Guest





PostPosted: Fri Feb 25, 2005 9:50 pm    Post subject: Re: Delphi 7: Access violation at address # in module 'comct Reply with quote

One day after the re-installation of my computer, the error occured
again.
Also a system recovery to a time that it still works doesn't helped
me.

I installed the suggested MaddExcept VCL. And this gives the following
result.

I hope anybody see something strange ...
For example: is it normal that it takes the comctl32.dll from
C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
instead of
C:WINDOWSsystem32


Regards,

Iwan Oprins

=====

date/time : 2005-02-25, 22:40:07, 140ms
computer name : UW-0A59WY3S1FUL
user name : HP_Eigenaar
operating system : Windows XP Service Pack 2 build 2600
system language : Dutch
system up time : 44 minutes 3 seconds
program up time : 9 seconds
processors : 2x Intel(R) Pentium(R) 4 CPU 3.00GHz
physical memory : 199/511 MB (free/total)
free disk space : (CSmile 197,68 GB
display mode : 1280x1024, 32 bit
process id : $e70
allocated memory : 5,23 MB
executable : wegwed.exe
exec. date/time : 2005-02-25 22:39
version : 4.20.0.0
madExcept version : 2.7g
exception class : EAccessViolation
exception message : Access violation at address 5D4E65F8 in module
'comctl32.dll'. Read of address FEEEFEEE.

main thread ($ffc):
5d4e65f8 comctl32.dll
77d1e361 user32.dll CallWindowProcA
0047efaf wegwed.exe Controls TWinControl.DefaultHandler
0047f523 wegwed.exe Controls TWinControl.WMPaint
004609f1 wegwed.exe ComCtrls TCustomStatusBar.WMPaint
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
7c90eae0 ntdll.dll KiUserCallbackDispatcher
77d1c090 user32.dll UpdateWindow
77d1e361 user32.dll CallWindowProcA
0047efaf wegwed.exe Controls TWinControl.DefaultHandler
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
77d1e2f2 user32.dll SendMessageA
00460735 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanel
00460878 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanels
004609e8 wegwed.exe ComCtrls TCustomStatusBar.WMPaint
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
7c90eae0 ntdll.dll KiUserCallbackDispatcher
77d1e361 user32.dll CallWindowProcA
0047efaf wegwed.exe Controls TWinControl.DefaultHandler
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
77d1e2f2 user32.dll SendMessageA
00460735 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanel
00460878 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanels
004609e8 wegwed.exe ComCtrls TCustomStatusBar.WMPaint
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
7c90eae0 ntdll.dll KiUserCallbackDispatcher
7c91096d ntdll.dll RtlReleasePebLock
77d1e361 user32.dll CallWindowProcA
0047efaf wegwed.exe Controls TWinControl.DefaultHandler
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
77d1e2f2 user32.dll SendMessageA
00460735 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanel
00460878 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanels
004609e8 wegwed.exe ComCtrls TCustomStatusBar.WMPaint
0047be6c wegwed.exe Controls TControl.WndProc
0047eecb wegwed.exe Controls TWinControl.WndProc
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
7c90eae0 ntdll.dll KiUserCallbackDispatcher
77d1e361 user32.dll CallWindowProcA
0047efaf wegwed.exe Controls TWinControl.DefaultHandler
0047be6c wegwed.exe Controls TControl.WndProc
004050ec wegwed.exe System @TryFinallyExit
00402580 wegwed.exe System SysGetMem
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
77d1e2f2 user32.dll SendMessageA
00460735 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanel
00460878 wegwed.exe ComCtrls TCustomStatusBar.UpdatePanels
004609e8 wegwed.exe ComCtrls TCustomStatusBar.WMPaint
0047be6c wegwed.exe Controls TControl.WndProc
0043b4b5 wegwed.exe Classes TList.Delete
0043b71d wegwed.exe Classes TList.Remove
0047eb48 wegwed.exe Controls TWinControl.MainWndProc
0044311c wegwed.exe Classes StdWndProc
7c90eae0 ntdll.dll KiUserCallbackDispatcher

modules:
00400000 wegwed.exe 4.20.0.0 c:DataDelphiWegwedVersie4
10000000 asOEHook.dll 2004.1.4.18
C:PROGRA~1COMMON~1SYMANT~1ANTISPAM
20000000 pcl5eres.dll 0.3.1296.1
C:WINDOWSSystem32spoolDRIVERSW32X863
5b190000 uxtheme.dll 6.0.2900.2180 C:WINDOWSsystem32
5d300000 hhctrl.ocx 5.2.3790.1280 C:WINDOWSsystem32
5d4e0000 comctl32.dll 5.82.2900.2180 C:WINDOWSsystem32
68dc0000 hhctrlui.dll 4.74.9273.0 C:WINDOWSsystem32mui013
71a20000 WS2HELP.dll 5.1.2600.2180 C:WINDOWSsystem32
71a30000 WS2_32.dll 5.1.2600.2180 C:WINDOWSsystem32
71a50000 wsock32.dll 5.1.2600.2180 C:WINDOWSsystem32
72f70000 winspool.drv 5.1.2600.2180 C:WINDOWSsystem32
76350000 comdlg32.dll 6.0.2900.2180 C:WINDOWSsystem32
767f0000 UNIDRVUI.DLL 0.3.1296.1
C:WINDOWSSystem32spoolDRIVERSW32X863
770e0000 oleaut32.dll 5.1.2600.2180 C:WINDOWSsystem32
77170000 wininet.dll 6.0.2900.2577 C:WINDOWSsystem32
77390000 comctl32.dll 6.0.2900.2180
C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
774a0000 ole32.dll 5.1.2600.2595 C:WINDOWSsystem32
77890000 UNIDRV.DLL 0.3.1296.4
C:WINDOWSSystem32spoolDRIVERSW32X863
77a40000 CRYPT32.dll 5.131.2600.2180 C:WINDOWSsystem32
77ae0000 MSASN1.dll 5.1.2600.2180 C:WINDOWSsystem32
77bd0000 version.dll 5.1.2600.2180 C:WINDOWSsystem32
77be0000 msvcrt.dll 7.0.2600.2180 C:WINDOWSsystem32
77d10000 user32.dll 5.1.2600.2180 C:WINDOWSsystem32
77da0000 RPCRT4.dll 5.1.2600.2180 C:WINDOWSsystem32
77e40000 GDI32.dll 5.1.2600.2180 C:WINDOWSsystem32
77e90000 SHLWAPI.dll 6.0.2900.2573 C:WINDOWSsystem32
77f10000 Secur32.dll 5.1.2600.2180 C:WINDOWSsystem32
77f40000 advapi32.dll 5.1.2600.2180 C:WINDOWSsystem32
7c000000 MSVCR70.dll 7.0.9466.0 C:WINDOWSsystem32
7c800000 kernel32.dll 5.1.2600.2180 C:WINDOWSsystem32
7c900000 ntdll.dll 5.1.2600.2180 C:WINDOWSsystem32
7c9c0000 shell32.dll 6.0.2900.2578 C:WINDOWSsystem32

hardware:
.... [deleted for this moment] ...

disassembling:
5d4e65f8 sub_5d4e65f8: ; function entry point
5d4e65f8 > mov cx, [esi]
5d4e65fb test cx, cx
5d4e65fe jz loc_5d4e660c
5d4e6600 mov [edx], cx
5d4e6603 inc edx
[...]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.