- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-04-26 04:39 AM
Compiler Error C0297 - Stack overflow detected
I ran into another compiler error after I fixed C0037 by myself.
Now I'm getting:
If I decrease the size of my arrays via my global constant:
gc_MaxRegistredObjects : INT := 500;
to, for example, 350 the error is gone. First I thought its a memory space problem but its not. There is plenty of free space in memory.
Since I'm using compiler attributes like in my previous problem about C0037:
I tried to remove those attributes and guess what, fixed the issue. I can set the constant to 1000 or more, no problem.
This leads me to believe that those compiler attributes are highly buggy in machine expert. Or can someone explain this behavior?
I attached a sample project which shows the issue.
- Labels:
-
Modicon M2xx
- Tags:
- english
Link copied. Please paste this link to share this article on your social media post.

