Re: Debug Assertion Failed
Hi,
See if you are smashing your buffer. Comment out the following:
Code:
char buffer[MAX_CHANNEL_NAME];
memset( buffer, 0x0, MAX_CHANNEL_NAME );
//channels->Get(i,&pChanEncontrado);
//pChanEncontrado->ReturnChannelName(buffer);
vector->Add(buffer);
You might also verify you do not need the following (room for '\0' Terminator?):
Code:
char buffer[MAX_CHANNEL_NAME+1];
Finally, what is the typedef for TArrayStream?
Jeff
Re: Debug Assertion Failed
Typically I have encountered this problem if the DLL allocates memory and the application tries to free this allocated memory. The two heaps are different. It's been such a long time since I last encountered this problem but I believe the solution is to match your CRTs.
Go to Project->Settings->Code Generation.
Make sure your app and your DLL are using the same runtime library.
So if your app uses Multithreaded DLL your DLL setting should also be Multithreaded DLL. Also at the same time you need to make sure that your app and DLL are using the same build versions. Hence if your App is built with release build your DLL should also be built using release build. If your App is built with debug build, your DLL should be a debug build as well.
Let me see if I can dig up a previous post I had posted way back a long time ago.
Re: Debug Assertion Failed
Hi guys,
Thanks for your help. It worked!!!. The buffer was ok to receive data. It´s been a problem of difference of CRT.
Thaks again.