ggandda / simd-cxx

Automatically exported from code.google.com/p/simd-cxx
0 stars 0 forks source link

Allocated memory on Stack #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create larger data structures in IDL (~2MB)
2. Compile program with standard settings in Visual Studio

What is the expected output? What do you see instead?
Program crashes with Segfault (Stack Overflow) on startup

What version of the product are you using? On what operating system?
SimD 0.9 on WinXP

Please provide any additional information below.
Problem can of course be fixed by setting linker options to compile program 
with a larger stack.

Question: Is there a way to put the stuff on the heap instead of the stack?

Original issue reported on code.google.com by sque...@gmx.net on 4 May 2011 at 7:54

GoogleCodeExporter commented 8 years ago
Oh sorry, that isn't a "DEFECT" but a hint... I can not change the type anymore.

Original comment by sque...@gmx.net on 4 May 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Thanks reporting your issues and for the hint. Your problem is addressed by a 
new extension that we've just added to the DDS specification (as part of the 
Dynamic and Extensible Topic Types) and which will be added to OpenSplice DDS  
in early 2012. This feature is an annotation that you can use in IDL called 
"@shared". Shared attributes will be indeed allocated on the heap.

Original comment by angelo.corsaro@gmail.com on 4 Jul 2011 at 11:18