Hello,
We are getting a heap corruption while running the sample TCPDrv driver which comes along with the PVSS setup. We have compiled the sample driver in Visual studio 2010 and executed. While calling the begin() method, the heap is getting corrupted and argv[] parameter becomes bad pointer. Please give your suggestion to solve this issue. The code segment is given below.
PVSS version used: 3.11 SP1
void TcpResources::init(int &argc, char *argv[])
{
begin(argc,argv);
DriverName += getManNum();
while (readSection() || generalSection());
end(argc, argv);
}
Thanks and regards,
Balamurali
TCP driver heap corruption
- mpoint
- Posts:49
- Joined: Thu Oct 28, 2010 11:28 am
Re: TCP driver heap corruption
Are you compiling with Debug or Release configuration? I'm afraid our example projects might still contain a Debug configuration, but it cannot be used. Our binaries are build with Release configuration, and cannot be mixed with the Debug configuration because of the different MSVC runtime DLLs involved.
- powermanager
- Posts:4
- Joined: Fri Mar 22, 2013 9:31 am
Re: TCP driver heap corruption
I can understand. Thanks for your reply. Is there any possibilities available for debugging the driver code. I have tried debgging the release binaries with minimal debugging info enabled but encountered the sama issue. I have checked the loaded modules including the MSVC runtime dll and all are release binaries only.