![]() |
strcat error
testing out some code, our auto looked similar to this:
Code:
int loop=0; |
Re: strcat error
I think you think that strcat does something that it doesn't. You can't just cast an int to a char * and expect it to work.
How about: Code:
int loop=0;Code:
int loop=0; |
Re: strcat error
ok, but why is it crashing the crio?
|
Re: strcat error
Quote:
|
Re: strcat error
ahhh! that would explain that! doesn't one love the power and the unsafeness of C/C++? (there's an easy virus: ((char*)0) = "CORRUPT THIS DATA!!!!"; :D )
|
Re: strcat error
Quote:
Now of course, if you're running in the kernel and make a bad memory access, then the system will generally crash, since theres nothing to protect you there. Incidentally, our programs are running as a kernel module on the cRio... |
Re: strcat error
Quote:
|
| All times are GMT -5. The time now is 13:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi