Debug Assertion Failed dbgdel.cpp Line 45
-
Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks
-
Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks
That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
:laugh:
-
That's because you used ++ instead of + in line 21, making the counter in line 42 overflow. Insert a comment line on line 41, this should fix it, or bring the problem to line 43.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
Hi there, I have an application interfacing two other application one windows base and another one Linux base and my application receives messages from the Linux base app. and sends that to the windows base one and vise versa, the messages from Linux base app. in ASCII hex and I change it to XML string and send it to the windows base app. and also get in XML string from that and convert it to HEX for the Linux base app. The problem is that after a while I get the Debug Assertion Failed dbgdel.cpp Line 42 Message and my application crashes. Any idea would be appreciated. Thanks
nahitan wrote:
after a while I get the Debug Assertion Failed dbgdel.cpp Line 42
Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.
-
nahitan wrote:
after a while I get the Debug Assertion Failed dbgdel.cpp Line 42
Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.
Mark Salsbery wrote:
...blame Linux.
Why not just save time and do that first? ;)
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
nahitan wrote:
after a while I get the Debug Assertion Failed dbgdel.cpp Line 42
Assertions in delete are probably from your code trashing memory it doesn't own. You'll need to debug your code and find all the places you are overunning the end of allocated memory. If that doesn't work, blame Linux.