c function in WinCC

hi,
there is a problem with a c function written for wincc. it dosent matter waths the sourcecode about after a special number of
commands i get a general protection fault.
eg. for(x=0;x<1000;x++){printf("%d", x);} runs fine.
but something like this
printf("%d" x); x++; printf("%d" x); x++; printf("%d" x); x++; . . (1000 times) .
generates a protection fault during execution.
anybody an idea?
thx.
ibez
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.