Board index » delphi » Borland C++ Usage (Usage not Installation) and Windows 2000

Borland C++ Usage (Usage not Installation) and Windows 2000

Hi,

I'm a C++ Beginner. As an environment I'm using Borland's C++ v5.01 with all
the available & correct patches fot that version. The installation went
perfectly fine, and I can start and quit it without any problems, but as
soon as I try to run (Strg+F9) programs, just compiled I get into trouble.
Borland C++ closes and I'm receiving an error message that the program was
canceled and that I should consider the log files. I can repeat this step a
thousand times and with any source code. The just written source code is
alright (I already tried to compile it on other OSes (same machine)and other
compilers without any problems or errors!!!!).

PS: Well , if it helps or somebody's interested I might as well copy the
passage concerning the error from the log file into another message.
Otherwise here's my configuration:
ABIT BX6 r.2
Pentium III 700 @ 819
196 MB RAM
Asus V7700 Geforce 2 GTS
2*15 GB HDD
Adaptec SCSI Controller 2904CD
Plextor UltraPlex 40Max
Ricoh MP7060S
Creative SB Live 1024 Player
Creative SB AWE 64 Value PnP
Accton 1207-TX Wol Network card
300 W supply

 

Re:Borland C++ Usage (Usage not Installation) and Windows 2000


Quote
On Thu, 14 Dec 2000 21:40:06 +0100, "AfEM@N" <Dub...@web.de> wrote:
>using Borland's C++ v5.01
>soon as I try to run (Strg+F9) programs
>Borland C++ closes and I'm receiving an error message that the program was
>canceled and that I should consider the log files.

Without seeing the error message, it's impossible to help. There can be many
hundreds of different messages possible. Since you say it tells you to look at
the log files, it sounds like you've got CodeGuard installed and enabled, and
are getting errors reported by CodeGuard. Show the smallest possible program
which causes this, and the error messages (copy & paste, don't retype).

You might also consider disabling CodeGuard, rebuilding, and try running again.

--
Wayne A. King
(ba...@torfree.net, wayne.k...@ablelink.org,
 wak...@idirect.com, Wayne_A_K...@compuserve.com)

Re:Borland C++ Usage (Usage not Installation) and Windows 2000


Hi,

I'll try to explain the situation once more. I'm using W2k. As a result I
have a program in the background that is called "Dr. Watson" (typical
feature of NT). Its purpose is to report and log errors.
When I write a program (source code), which is definitely correct and try to
run (Strg + F9) this program from INSIDE Borland C++ v5.01. I get an error
message from Dr. Watson saying, that "the application was shut down, because
it caused an error. Read the log for details" (translated & simplified).
Consequently Borland C++ closes.
But if I only compile a source code (Alt + F9) and start this file
seperately in a single dos box, everythings alright. The program runs
perfectly fine. On the other hand, If I take the source code and RUN it in
Borland C++ v5.01 on my Win98 OS environment (same machine, same config.) it
works. See the difference?
RUN(Strg + F9): W2k & BC++ v5.01 =>Error
                           Win98 & BC++ v5.01 =>OK
Only COMPILE (ALT + F9): W2k & BC++ v5.01 =>OK
Starting this compiled program form within a DOS box works!

I hope I made myself clear this time. Thank you in advance.

If you are interested here is the passage from the log file containing the
error description by Dr.Watson:

Anwendungsausnahme aufgetreten:
        Anwendung:  (pid=464)
        Wann: 15.12.2000 @ 13:56:43.983
        Ausnahmenummer: c0000025
()

*----> Systeminformationen <----*
        Computername: KILLER
        Benutzername: Administrator
        Prozessoranzahl: 1
        Prozessortyp: x86 Family 6 Model 8 Stepping 3
        Windows 2000-Version: 5.0
        Aktuelles Build: 2195
        Service Pack: None
        Aktueller Typ: Uniprocessor Free
        Firma:
        Besitzer: Wojtek Nowak

*----> Taskliste <----*
   0 Idle.exe
   8 System.exe
 148 smss.exe
 172 csrss.exe
 168 winlogon.exe
 220 services.exe
 232 lsass.exe
 392 svchost.exe
 424 SPOOLSV.exe
 476 svchost.exe
 512 regsvc.exe
 528 mstask.exe
 556 winmgmt.exe
 792 explorer.exe
 676 devldr32.exe
 260 Ahqtb.exe
 836 point32.exe
 908 wcescomm.exe
 960 IEXPLORE.exe
 972 msipcsv.exe
 988 getright.exe
 824 msimn.exe
 464 BCW.exe
 896 drwtsn32.exe
   0 _Total.exe

(00400000 - 0056F000)
(77F80000 - 77FFF000)
(00230000 - 00273000)
(77E70000 - 77F33000)
(77E00000 - 77E65000)
(77F40000 - 77F7C000)
(01270000 - 01283000)
(76B00000 - 76B3F000)
(70BD0000 - 70C1C000)
(77DA0000 - 77DFA000)
(77D30000 - 77D9F000)
(71700000 - 7178A000)
(77580000 - 777C6000)
(78000000 - 78046000)
(01290000 - 01329000)
(00870000 - 00894000)
(00940000 - 009A6000)
(007C0000 - 007D8000)
(01360000 - 0136C000)
(01220000 - 0123E000)
(77A40000 - 77B35000)
(779A0000 - 77A35000)
(777F0000 - 7780D000)
(77540000 - 77571000)
(68010000 - 68017000)
(665A0000 - 665A7000)
(61210000 - 6121C000)
(007E0000 - 007F4000)
(01330000 - 01354000)
(008A0000 - 00935000)
(00810000 - 00825000)
(00830000 - 00868000)
(007A0000 - 007B6000)
(00340000 - 0036E000)
(00370000 - 00384000)
(00390000 - 003A5000)
(01240000 - 01265000)
(00800000 - 0080A000)
(00690000 - 006BA000)
(006C0000 - 006CD000)
(006D0000 - 006FB000)
(00700000 - 00711000)
(01C90000 - 01CA3000)
(01200000 - 0121F000)
(77CB0000 - 77D30000)
(02160000 - 02166000)
(61220000 - 6122E000)
(75000000 - 75010000)
(750D0000 - 750DC000)
(75180000 - 75195000)
(75140000 - 75178000)
(750E0000 - 7512F000)
(77BD0000 - 77BDF000)
(75130000 - 75136000)
(750C0000 - 750CF000)
(74FA0000 - 74FB4000)
(74F90000 - 74F98000)
(77940000 - 7796A000)
(77970000 - 77994000)
(74FC0000 - 74FC9000)
(023B0000 - 024B1000)
(00720000 - 00790000)
(01180000 - 011D6000)
(024C0000 - 025A7000)
(0A210000 - 0A240000)

Statusabbild fr Threadkennung 0x33c

eax=0012f7e8 ebx=0012ffb0 ecx=00000000 edx=ffffffff esi=0012f860
edi=00000000
eip=77fb0491 esp=0012f7dc ebp=0012f848 iopl=0         nv up ei pl nz na pe
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000
efl=00000202

Funktion: RtlRaiseStatus
        77fb046c e930abfdff       jmp  RtlConsoleMultiByteToUnicodeN+0x474
(77f8afa1)
        77fb0471 48               dec     eax
        77fb0472 7422             jz  RtlConvertUlongToLargeInteger+0x256d
(77fbcb96)
        77fb0474 c745a0260000c0
ss:00cbce1e=????????
                                  mov     dword ptr [ebp+0xa0],0xc0000026
        77fb047b 8d45a0           lea     eax,[ebp+0xa0]
ss:00cbce1e=????????
        77fb047e c745a401000000   mov   dword ptr [ebp+0xa4],0x1
ss:00cbce1e=????????
        77fb0485 50               push    eax
        77fb0486 8975a8           mov     [ebp+0xa8],esi
ss:00cbce1e=????????
        77fb0489 894db0           mov     [ebp+0xb0],ecx
ss:00cbce1e=????????
        77fb048c e8cffeffff       call    RtlRaiseException (77fb0360)
FEHLER ->77fb0491 e91eabfdff       jmp  RtlConsoleMultiByteToUnicodeN+0x487
(77f8afb4)
        77fb0496 8b45f0           mov     eax,[ebp+0xf0]
ss:00cbce1e=????????
        77fb0499 834e0410         or    dword ptr [esi+0x4],0x10
ds:00cbce36=????????
        77fb049d 3b45fc           cmp     eax,[ebp+0xfc]
ss:00cbce1e=????????
        77fb04a0 0f860eabfdff     jbe  RtlConsoleMultiByteToUnicodeN+0x487
(77f8afb4)
        77fb04a6 8945fc           mov     [ebp+0xfc],eax
ss:00cbce1e=????????
        77fb04a9 e906abfdff       jmp  RtlConsoleMultiByteToUnicodeN+0x487
(77f8afb4)
        77fb04ae c745a0250000c0
ss:00cbce1e=????????
                                  mov     dword ptr [ebp+0xa0],0xc0000025
        77fb04b5 ebc4             jmp     wcsspn+0x935 (77fb887b)
        77fb04b7 834e0408         or     dword ptr [esi+0x4],0x8
ds:00cbce36=????????
        77fb04bb 32c0             xor     al,al
        77fb04bd e9a53dfdff       jmp   RtlDosPathNameToNtPathName_U+0x241
(77f84267)

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0012F848 77F9FB9A 0012F860 0012F874 0012F860 0012F874 ntdll!RtlRaiseStatus
0012FB90 77F9D4A7 C0000008 0A243610 77F8FDF9 0A2429FC
ntdll!KiUserExceptionDispatcher
0012FBB4 0A218CF0 0A2429F4 0012FDB4 0012FDBC C0000000
ntdll!RtlEnableEarlyCriticalSectionEventCreation
0012FCC4 77E03EB0 000201D0 00000716 00000000 0A243610 !DBKINITPROC
0012FCE4 77E0401A 0A2189BC 000201D0 00000716 00000000 user32!SetTimer
0012FD70 77E092DA 0012FDB4 00000001 012A0165 0012FDB4
user32!DispatchMessageW
0012FDD0 0129F9CF 0012FEB8 00000000 0050402C 0012FEB8
user32!DispatchMessageA
0012FE20 012922F3 0012FEB8 00000000 0050402C 0012FEB8 !TApplication
0012FE88 00408F7D 0012FEB8 00400000 0012FF64 005029AE !TApplication
0012FF48 005027A0 00000001 00CD3A90 00000000 0050402C
!forwardPromptWndProc$qqsp6HWND__uiuil
0012FF88 0024C386 00400000 00000000 001337DD 0000000A !ExecuteTool
0012FFB8 00000000 0050402C 77E77903 0006D148 0000051E !_startup

*----> Raw Stack Dump <----*
0012f7dc  3c 2f 24 0a fc 29 24 0a - 60 f8 12 00 25 00 00 c0
</$..)$.`...%...
0012f7ec  01 00 00 00 60 f8 12 00 - 91 04 fb 77 00 00 00 00
....`......w....
0012f7fc  00 00 00 00 74 f8 12 00 - ae 29 50 00 3c 43 50 00
....t....)P.<CP.
0012f80c  f0 f7 12 00 08 00 00 00 - 00 00 12 00 14 00 00 00
................
0012f81c  c4 8b 54 00 94 57 40 00 - 88 39 d1 00 74 f8 12 00
..T..W@..9..t...
0012f82c  ae 29 50 00 d4 41 50 00 - 24 f8 12 00 00 00 00 00
.)P..AP.$.......
0012f83c  00 00 13 00 00 90 12 00 - 00 00 00 00 90 fb 12 00
................
0012f84c  9a fb f9 77 60 f8 12 00 - 74 f8 12 00 60 f8 12 00
...w`...t...`...
0012f85c  74 f8 12 00 08 00 00 c0 - 01 00 00 00 00 00 00 00
t...............
0012f86c  3c 04 fb 77 00 00 00 00 - 3f 00 01 00 00 00 00 00
<..w....?.......
0012f87c  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
................
0012f88c  00 00 00 00 72 13 ff ff - 00 00 ff ff ff ff ff ff
....r...........
0012f89c  00 00 00 00 48 d8 00 00 - 0c 00 00 00 00 00 ff ff
....H...........
0012f8ac  38 00 04 01 00 40 1c b9 - 64 3d ec fd 12 00 00 e0
8....@..d=......
0012f8bc  fd 7f d8 3d da 07 43 80 - a8 38 1c b9 a0 38 b8 db
...=..C..8...8..
0012f8cc  31 a0 b8 db 31 a0 e0 fc - ac 38 1c b9 00 00 00 00
1...1....8......
0012f8dc  2c 00 1c fd 12 00 d8 3d - 1c b9 00 00 00 e0 fd 7f
,......=........
0012f8ec  e0 fc 12 00 ec 37 b4 3a - 1c b9 2c cc 45 80 40 91
.....7.:..,.E.@.
0012f8fc  00 00 00 00 00 00 00 00 - 3b 00 00 00 23 00 00 00
........;...#...
0012f90c  23 00 00 00 3c 2f 24 0a - fc 29 24 0a f4 29 24 0a
#...</$..)$..)$.

Statusabbild fr Threadkennung 0x298

eax=77d3b759 ebx=0014c9c0 ecx=001516bc edx=00000000 esi=00151700
edi=00000100
eip=77f82eec esp=01dcfe28 ebp=01dcff74 iopl=0         nv up ei pl nz na pe
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000
efl=00000202

Funktion: ZwReplyWaitReceivePortEx
        77f82ee1 b8ac000000       mov     eax,0xac
        77f82ee6 8d542404         lea     edx,[esp+0x4]
ss:0295d3ff=????????
        77f82eea cd2e             int     2e
        77f82eec c21400           ret     0x14

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
01DCFF74 77D3B407 77D3B7BF 00151700 00000000 401511FC
ntdll!ZwReplyWaitReceivePortEx
01DCFFA8 77D3B771 001505A8 01DCFFEC 77E82CA8 0014C9C0
rpcrt4!RpcBindingSetOption
01DCFFB4 77E82CA8 0014C9C0 00000000 401511FC 0014C9C0
rpcrt4!RpcBindingSetOption
01DCFFEC 00000000 77D3B759 0014C9C0 00000000 2B4D4F43 kernel32!CreateFileA

*----> Raw Stack Dump <----*
01dcfe28  94 b5 d3 77 c4 00 00 00 - 54 ff dc 01 00 00 00 00
...w....T.......
01dcfe38  d0 62 15 00 58 ff dc 01 - 00 f5 14 00 a8 05 15 00
.b..X...........
01dcfe48  c0 c9 14 00 00 00 00 00 - 06 01 00 00 00 00 00 00
................
01dcfe58  00 00 00 00 01 00 00 00 - 00 00 00 00 00 e0 fd 7f
................
01dcfe68  fc 07 30 c0 18 ec 64 b9 - 15 a5 44 80 00 d0 fd 7f
..0...d...D.....
01dcfe78  00 00 00 00 00 00 00 00 - 00 d0 fd 7f 08 ae 13 81
................
01dcfe88  01 1e 8a ff 00 00 00 00 - 74 ff 1f c0 50 eb ac e2
........t...P...
01dcfe98  8c c6 37 e2 00 00 00 02 - 00 00 00 02 e0 9b 46 80
..7...........F.
01dcfea8  00 00 00 00 e0 9b 46 80 - b8 eb 64 b9 45 d4 4a 80
......F...d.E.J.
01dcfeb8  00 00 00 02 80 ec 64 b9 - d0 eb 64 b9 15 cf 4a 80
......d...d...J.
01dcfec8  80 ec
...

read more »

Other Threads