On 16 Sep 2005 19:10:42 -0700, "Chang" <cckbyun@gmail.com> wrote in
comp.lang.c:
[color=blue]
> I wrote a C program only for calculation
> using MS visual studio and run it in Windows.
> With small size of variables, it runs o.k.
> with large size of variables, however, it stop abnormally.
>
> I guess it might come from memory leakage.
> So, I check it out pretty throughly but I could not
> find any memory allocation and free type problem.
>
> so, I run it in Linux and it works fine with large size of variables
> which are big enough to run for a day.
>
> I understand C programs run same way in windows and Linux.
> I am confused what make it happen.
> Here is my questions,
>
> Q1) What mistake might I make?[/color]
There is a missing semicolon on line 42.
[color=blue]
> Q2) How come it doesn't have amy problem with Linux?
> Q3) If it is still memory leakage problems, what is easier way
> to detect them?
> Q4) Is there any thing I need to consider to run C program in
> different OS?
>
> If you have any simliar experience, Please, give me some clue or
> help?
>
> Have a nice day.
> And Thanks for your time.
>
> Chang[/color]
I'm afraid that my crystal ball is out being cleaned and pressed.
If you are looking at your code and cannot see what is wrong with it,
how do you expect someone else to figure it out when we can't even see
the code?
You haven't even told us what "stops abnormally" means.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html