Questions tagged [codeguard]

A back-up system or a code instrumentation tool.

Codeguard may refer to:

12 questions
4
votes
4 answers

How do I solve "Two different CRTLDLLs are loaded" when using packages in C++ Builder 2010?

We are trying to split up our monolithic EXE into a combination of an EXE and several packages. So far, we have one package that we're trying to use, and when running the EXE Codeguard shows the following error on startup: CG Error Two different…
David
  • 13,360
  • 7
  • 66
  • 130
2
votes
1 answer

C++, ostream error when passing argument in CBuilder 2010

What is wrong in this source code? #include #include #include void printTest ( std::ostream * o ) { *o << "test" << std::endl; } int main ( int argc, char * argv[] ) { std::ostream * o = &std::cout; char…
justik
  • 4,145
  • 6
  • 32
  • 53
2
votes
2 answers

Does Visual Studio have anything like Borland's CodeGuard?

Is there anything in Visual Studio that will report memory leaks like Codeguard? eg: Error 00001. 0x300010 (Thread 0x0FA4): Resource leak: The object (0xC65D84) was never deleted The object (0x00C65D84) [size: 4 bytes] was created with new |…
Stuart P. Bentley
  • 10,195
  • 10
  • 55
  • 84
2
votes
1 answer

Which Magento website directories and files not to backup with cloud backup solutions such as Codeguard?

I have a Magento 1.7.0.2 installation on a website and want to backup in the cloud using Codeguard (codeguard.com) through FTP. I have been asked which directories to pick for backup and suggested to remove /var/cache and /var/temp directories…
user1762704
  • 49
  • 1
  • 5
1
vote
2 answers

What should I do in order to succesfully link a C++ Builder 6 project in C++ Builder 2009 without unresolved external references to CodeGuard things?

Here's what I did: I've opened a C++ Builder 6 - project in C++ Builder 2009. Auto-converted it to a C++ Builder 2009 project. Told it (C++ Builder 2009) to build everything. Here's what it did: Successfully compiled everything. Failed to…
secr
  • 2,743
  • 3
  • 20
  • 20
1
vote
1 answer

Understanding code contracts for interfaces

I want to create a code contract for a certain interface, however I'm having a hard time believing that it is actually done this way. [ContractClass(typeof(AsyncCacheProviderContract))] public interface IAsyncCacheProvider { Task
xvdiff
  • 2,179
  • 2
  • 24
  • 47
0
votes
1 answer

How do I interpret C++Builder CodeGuard Output?

CodeGuard has made this announcement: 9/12/2022 7:04:08 PM started a CodeGuard(tm) process: MyProg.exe(12200) Resource leak in process: MyProg.exe(12200) - System.pas#4942 The memory block (0x305EBC0) was never freed The memory block…
0
votes
1 answer

C++ Builder - CodeGuard and madExcept

I like to use Codeguard utility to detecting array range and memory leaks. Unfortunately, cg doesn’t work in RAD studio 10.2 for me (we have an installation of 10.2 on three computers and same problems). When CG detect problem in code it freezes and…
vsm
  • 41
  • 6
0
votes
1 answer

Memory leaks in code when using Embarcadero 10.3.1

My C++ code is written in Embarcadero 10.3.1. I am facing lot of memory leaks and resource leaks. I am unable to identify the leaks. When I use CodeGaurd, the application freezes, so I'm unable to get any conclusions. My application is a background…
0
votes
0 answers

Writing data to file and CodeGuard error notifications

While writing data to the file and closing the file, CodeGuard generates errors. char *buffer = new char[10]; char data[] = "abcdefghij"; memcpy(&buffer[0], &data[0], 10); //create file ofstream myfile("d:/output.txt",…
Ig_M
  • 107
  • 9
0
votes
1 answer

Problem with Debugging in C++ Builder 2009

I have a strange problem, I hope you can help me. I write a program in C++ Builder 2009, when I run the program without debugger I see an Exception raised. bun in debugger never exception raised and I cant find the exception point. And Also I enable…
Mahdi
  • 247
  • 2
  • 6
0
votes
0 answers

SQL Code Guard and nested transactions rollback?

I have a stored procedure that may be called from a transaction. When there is an exception I want to rollback the transaction (the top-level transaction). I would like to use something like this: ...procedure definition... BEGIN BEGIN TRY …
user992990
  • 41
  • 5