- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I write .dll add-ins for commercially available programs (Matlab, in this case) and I get a stack overflow in the .dll; is it the app stack that is overflowing or does the .dll have its own stack?
matt.
matt.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, what an opening. I cover exactly this topic in Issue X of the Visual Fortran Newsletter, being mailed out now to registered users.
No, DLLs don't have their own stacks. You are limited by the stack specified when the EXE was linked. The best approach is to reduce use of the stack by using allocatable arrays instead of automatic arrays, and trying to reduce the need for the compiler to make temporary array copies.
Steve
No, DLLs don't have their own stacks. You are limited by the stack specified when the EXE was linked. The best approach is to reduce use of the stack by using allocatable arrays instead of automatic arrays, and trying to reduce the need for the compiler to make temporary array copies.
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page