Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Trying CodeGuard for the first time, getting hundreds of errors. Help!


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Last Post: Mar 9, 2016 8:55 AM Last Post By: David Millington
Mister Snrub

Posts: 35
Registered: 1/8/12
Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2016 10:07 AM
I'n trying CodeGuard and it's outputting a thousand of the same error in my logfile: "bad parameter: a bad file stream (0x3223096C) has been passed to the function." I commemt out the function that it's referring to and it just gives me another error in another function. I can find anything wrong with my project. What does this error mean and how do I fix it?
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 4, 2016 7:52 AM   in response to: Mister Snrub in response to: Mister Snrub
std::streams break codeguard. A known bug that probably will never be
fixed.

--
Bruce
Bruce Salzman


Posts: 56
Registered: 8/23/02
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 4, 2016 9:56 AM   in response to: Mister Snrub in response to: Mister Snrub
std::streams break codeguard. A known bug that probably will never be
fixed.

--
Bruce
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 5, 2016 12:18 AM   in response to: Bruce Salzman in response to: Bruce Salzman
Bruce Salzman wrote:

std::streams break codeguard. A known bug that probably will never be
fixed.

There are some other functions where CG is false-positive.

(In addition CG is not thread-safe: its memory manager often returns
NULL (no memory) on alloc requests under "heavy" (not too heavy in
fact) multithreading load).

Try madExcept's detector of leaks of memory and system objects.

--
Alex
David Millington

Posts: 257
Registered: 5/29/05
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 5, 2016 9:22 AM   in response to: Alex Belo in response to: Alex Belo
On 2016-03-05 08:18:53 +0000, Alex Belo said:

Bruce Salzman wrote:

std::streams break codeguard. A known bug that probably will never be
fixed.

There are some other functions where CG is false-positive.

(In addition CG is not thread-safe: its memory manager often returns
NULL (no memory) on alloc requests under "heavy" (not too heavy in
fact) multithreading load).

I knew about std::streams breaking CodeGuard, but not the MM failing in
threaded situations. Is there a Quality report about that you can link
me to please?
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 5, 2016 11:41 PM   in response to: David Millington in response to: David Millington
David Millington wrote:

I knew about std::streams breaking CodeGuard, but not the MM failing
in threaded situations. Is there a Quality report about that you can
link me to please?

Report #: 68759 Status: Open
CodeGuard getmem is not thread-safe
Report Type: Crash / Data loss / Total failure
Date Reported: 11/10/2008 (I discovered this problem myself some
months earlier...)

http://qc.embarcadero.com/wc/qcmain.aspx?d=68759

Last update:
Jochen Heinelt at 2/25/2016
The problem still exists in XE10 Seattle!

--
Alex
David Millington

Posts: 257
Registered: 5/29/05
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 8, 2016 3:53 AM   in response to: Alex Belo in response to: Alex Belo
On 2016-03-06 07:41:07 +0000, Alex Belo said:

David Millington wrote:

I knew about std::streams breaking CodeGuard, but not the MM failing
in threaded situations. Is there a Quality report about that you can
link me to please?

Report #: 68759 Status: Open
CodeGuard getmem is not thread-safe
Report Type: Crash / Data loss / Total failure
Date Reported: 11/10/2008 (I discovered this problem myself some
months earlier...)

http://qc.embarcadero.com/wc/qcmain.aspx?d=68759

Last update:
Jochen Heinelt at 2/25/2016
The problem still exists in XE10 Seattle!

Thanks. No QP report?
Alex Belo

Posts: 626
Registered: 10/8/06
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2016 8:45 AM   in response to: David Millington in response to: David Millington
David Millington wrote:

No QP report?

I don't know for sure but CG is not supported for new compilers and I
bet will be discontinued together with old bcc32 (so there is no reason
for EmbarcIdera to fix it).

--
Alex
David Millington

Posts: 257
Registered: 5/29/05
Re: Trying CodeGuard for the first time, getting hundreds of errors. Help!  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2016 8:55 AM   in response to: Alex Belo in response to: Alex Belo
Alex Belo wrote:
David Millington wrote:

No QP report?

I don't know for sure but CG is not supported for new compilers and I
bet will be discontinued together with old bcc32 (so there is no reason
for EmbarcIdera to fix it).

That's a pity, it's a neat tool.

I suppose much of its functionality is in the debug build of FastMM, though.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02