Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Source Code Editor Control Pin
peterchen7-Oct-11 2:29
peterchen7-Oct-11 2:29 
GeneralRe: Source Code Editor Control Pin
Software_Developer7-Oct-11 3:44
Software_Developer7-Oct-11 3:44 
AnswerRe: Source Code Editor Control Pin
TheGreatAndPowerfulOz7-Oct-11 3:52
TheGreatAndPowerfulOz7-Oct-11 3:52 
AnswerRe: Source Code Editor Control Pin
TheGreatAndPowerfulOz7-Oct-11 5:17
TheGreatAndPowerfulOz7-Oct-11 5:17 
QuestionThreads Pin
sarfaraznawaz7-Oct-11 0:35
sarfaraznawaz7-Oct-11 0:35 
AnswerRe: Threads Pin
David Crow7-Oct-11 2:55
David Crow7-Oct-11 2:55 
GeneralRe: Threads Pin
Albert Holguin7-Oct-11 5:07
professionalAlbert Holguin7-Oct-11 5:07 
QuestionAccess Violation Problem C++ Builder 2006 Pin
Turhan Coskun7-Oct-11 0:33
professionalTurhan Coskun7-Oct-11 0:33 
Here is the bug report of the error.

main thread ($12e8):<br />
00508898 +010 accountant.exe Controls            4164   +1 TControl.SetVisible<br />
00410046 +05a accountant.exe firmatanimlari.cpp    42   +6 TForm3.Button2Click<br />
0050a87d +335 accountant.exe Controls            5143  +83 TControl.WndProc<br />
0050ae3a +086 accountant.exe Controls            5226   +9 TControl.Click<br />
004b5019 +031 accountant.exe StdCtrls            3574   +3 TButton.Click<br />
00414b4e +0b6 accountant.exe firmatanimlari.cpp   297   +9 TForm3.FormShow<br />
004e88bd +021 accountant.exe Forms               2994   +1 TCustomForm.DoShow<br />
004ed498 +0ac accountant.exe Forms               5002  +11 TCustomForm.CMShowingChanged<br />
0050a87d +335 accountant.exe Controls            5143  +83 TControl.WndProc<br />
0050f585 +49d accountant.exe Controls            7242 +101 TWinControl.WndProc<br />
004e9345 +551 accountant.exe Forms               3284 +125 TCustomForm.WndProc<br />
00717cb9 +059 accountant.exe DBAdvGrid           7730  +13 TDBAdvGrid.WndProc<br />
0050a42a +036 accountant.exe Controls            5018   +5 TControl.Perform<br />
0050eab4 +100 accountant.exe Controls            6970  +17 TWinControl.UpdateShowing<br />
0050eb41 +059 accountant.exe Controls            6989   +8 TWinControl.UpdateControlState<br />
00511a61 +03d accountant.exe Controls            8269   +3 TWinControl.CMVisibleChanged<br />
0050a87d +335 accountant.exe Controls            5143  +83 TControl.WndProc<br />
0050f585 +49d accountant.exe Controls            7242 +101 TWinControl.WndProc<br />
004e9345 +551 accountant.exe Forms               3284 +125 TCustomForm.WndProc<br />
0050a42a +036 accountant.exe Controls            5018   +5 TControl.Perform<br />
005088c4 +03c accountant.exe Controls            4168   +5 TControl.SetVisible<br />
004e8c39 +055 accountant.exe Forms               3099   +8 TCustomForm.SetVisible<br />
004eddbc +00c accountant.exe Forms               5331   +1 TCustomForm.Show<br />
0040544c +074 accountant.exe anamenu.cpp          124   +8 TForm2.FirmaTanmlar1Click<br />
0050ae3a +086 accountant.exe Controls            5226   +9 TControl.Click<br />
008c5615 +051 accountant.exe AdvGlowButton       2563   +5 TAdvCustomGlowButton.Click<br />
0050b3c4 +078 accountant.exe Controls            5362   +6 TControl.WMLButtonUp<br />
008c6214 +308 accountant.exe AdvGlowButton       2985 +102 TAdvCustomGlowButton.WMLButtonUp<br />
0050a87d +335 accountant.exe Controls            5143  +83 TControl.WndProc<br />
0050f585 +49d accountant.exe Controls            7242 +101 TWinControl.WndProc<br />
0050ec74 +034 accountant.exe Controls            7021   +3 TWinControl.MainWndProc<br />
0055f54c +014 accountant.exe classes            11572   +8 StdWndProc<br />
77762e3c +00a USER32.dll                                   DispatchMessageA<br />
004f29ce +136 accountant.exe Forms               7651  +23 TApplication.ProcessMessage<br />
004f2a13 +00f accountant.exe Forms               7670   +1 TApplication.HandleMessage<br />
004f2cae +0a6 accountant.exe Forms               7754  +16 TApplication.Run<br />
004028b1 +111 accountant.exe accountant.cpp        99  +20 WinMain<br />
00a61918 +14c accountant.exe                               __startup<br />
7615ed6a +010 kernel32.dll                                 BaseThreadInitThunk


cpu registers:
eax = 00000000
ebx = 03c64d80
ecx = 03cc0e10
edx = 00000000
esi = 004e889c
edi = 0012fdfc
eip = 00508898
esp = 0012f48c
ebp = 0012f498

stack dump:
0012f48c  9c 88 4e 00 06 00 00 00 - 00 00 00 00 b8 f5 12 00  ..N.............
0012f49c  4b 00 41 00 07 00 00 00 - 22 01 00 00 10 fb 4c 00  K.A.....".....L.
0012f4ac  a0 58 c2 03 00 00 00 00 - 16 00 00 00 80 4d c6 03  .X...........M..
0012f4bc  10 0e cc 03 fc f5 12 00 - db 89 a5 00 f8 03 ad 00  ................
0012f4cc  a0 f4 12 00 00 00 00 00 - 00 00 00 00 60 fb 4c 00  ............`.L.
0012f4dc  00 00 00 00 a0 58 c2 03 - a0 58 c2 00 f8 f4 12 00  .....X...X......
0012f4ec  53 11 4d 00 64 f8 12 00 - a0 58 c2 03 28 f6 12 00  S.M.d....X..(...
0012f4fc  80 a8 50 00 44 8c 4e 00 - a0 58 c2 03 d6 0b 01 00  ..P.D.N..X......
0012f50c  5f 18 00 00 6c f5 12 00 - d9 1f a2 74 00 00 00 00  _...l......t....
0012f51c  90 f6 12 00 47 00 00 00 - 90 f6 12 00 cc f5 12 00  ....G...........
0012f52c  01 00 00 00 90 f6 12 00 - 47 00 00 00 00 00 00 00  ........G.......
0012f53c  90 f6 12 00 00 00 00 00 - 70 f5 12 00 e7 c4 76 77  ........p.....vw
0012f54c  d6 0b 01 00 47 00 00 00 - 00 00 00 00 90 f6 12 00  ....G...........
0012f55c  47 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  G...............
0012f56c  e8 f5 12 00 80 f5 12 00 - 9c f5 12 00 d8 98 7b 77  ..............{w
0012f57c  ef 61 76 77 e8 f5 12 00 - 54 f6 12 00 6e 12 58 00  .avw....T...n.X.
0012f58c  31 3e 58 00 10 00 00 00 - 06 00 00 00 a3 2f 58 00  1>X........../X.
0012f59c  9c 88 4e 00 e8 4f 4b 00 - 4a 59 4e 00 10 0e cc 03  ..N..OK.JYN.....
0012f5ac  10 0e cc 01 00 00 00 00 - 80 4d c6 03 c8 f5 12 00  .........M......
0012f5bc  40 ae 50 00 e8 4f 4b 00 - 80 4d c6 03 d8 f5 12 00  @.P..OK..M......

disassembling:
[...]
0050888b        add     esp, -8
0050888e        push    esi
0050888f        mov     [ebp-5], dl
00508892        mov     [ebp-4], eax
00508895 4164   mov     eax, [ebp-4]
00508898      > mov     al, [eax+$57]
0050889b        cmp     al, [ebp-5]
0050889e        jz      loc_5088d1
005088a0 4166   mov     eax, [ebp-4]
005088a3        mov     si, $ffcd
005088a7        call    +$7a754 ($583000)      ; system.@CallDynaInst
[...]


The problem occurs while setting visible of Button6 I guess it says I try to use Button6 before it's created. While compiling the application there is no problem.This is a runtime error. Here is the surprise, if I change the header C++ Builder recogizes that the header is changed and if compile again after changing the headers the error goes away. There are a few VCL forms in my application which have changed recently. Every time I started the IDE I need to make a fake editing on their header files to get a problemless exe file. I guess there is bug but how do I get saved from this.
QuestionBest way to store Array of Dynamic Objects Pin
002comp6-Oct-11 21:17
002comp6-Oct-11 21:17 
AnswerRe: Best way to store Array of Dynamic Objects Pin
Richard MacCutchan6-Oct-11 22:34
mveRichard MacCutchan6-Oct-11 22:34 
AnswerRe: Best way to store Array of Dynamic Objects Pin
_AnsHUMAN_ 6-Oct-11 22:47
_AnsHUMAN_ 6-Oct-11 22:47 
GeneralRe: Best way to store Array of Dynamic Objects Pin
002comp6-Oct-11 22:56
002comp6-Oct-11 22:56 
GeneralRe: Best way to store Array of Dynamic Objects Pin
Stefan_Lang6-Oct-11 23:42
Stefan_Lang6-Oct-11 23:42 
AnswerRe: Best way to store Array of Dynamic Objects Pin
Stefan_Lang6-Oct-11 23:06
Stefan_Lang6-Oct-11 23:06 
GeneralRe: Best way to store Array of Dynamic Objects Pin
002comp7-Oct-11 2:29
002comp7-Oct-11 2:29 
GeneralRe: Best way to store Array of Dynamic Objects Pin
002comp10-Oct-11 18:55
002comp10-Oct-11 18:55 
GeneralRe: Best way to store Array of Dynamic Objects Pin
Stefan_Lang10-Oct-11 23:48
Stefan_Lang10-Oct-11 23:48 
QuestionFunction "WriteAllText" Pin
i52camam6-Oct-11 8:52
i52camam6-Oct-11 8:52 
AnswerRe: Function "WriteAllText" Pin
TheGreatAndPowerfulOz6-Oct-11 8:59
TheGreatAndPowerfulOz6-Oct-11 8:59 
GeneralRe: Function "WriteAllText" Pin
i52camam6-Oct-11 9:06
i52camam6-Oct-11 9:06 
AnswerRe: Function "WriteAllText" Pin
Rajesh R Subramanian6-Oct-11 9:11
professionalRajesh R Subramanian6-Oct-11 9:11 
AnswerRe: Function "WriteAllText" Pin
TheGreatAndPowerfulOz6-Oct-11 9:14
TheGreatAndPowerfulOz6-Oct-11 9:14 
GeneralRe: Function "WriteAllText" Pin
i52camam8-Oct-11 10:07
i52camam8-Oct-11 10:07 
GeneralRe: Function "WriteAllText" Pin
TheGreatAndPowerfulOz10-Oct-11 7:45
TheGreatAndPowerfulOz10-Oct-11 7:45 
QuestionVC++ Excel programing about formatting output??? Pin
Falconapollo6-Oct-11 6:36
Falconapollo6-Oct-11 6:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.