From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,23ace43a488fab29 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: function "&" for strings type cause memory problem. Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 10 Nov 2005 10:23:44 +0100 Message-ID: <1b8p0cn261fbv.1lusp0njewox2.dlg@40tude.net> NNTP-Posting-Date: 10 Nov 2005 10:23:21 MET NNTP-Posting-Host: 2856bcf2.newsread2.arcor-online.net X-Trace: DXC=f7bgE`e@beCbkXRh2MA`7OQ5U85hF6f;DjW\KbG]kaMHQ>n?D9BSA]LBQFS?]MUgZO[6LHn;2LCVN7enW;^6ZC`D<=9bOTW=MNN X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:6337 Date: 2005-11-10T10:23:21+01:00 List-Id: On Thu, 10 Nov 2005 16:25:09 +0800, bubble wrote: > I guess functin "&" for string type may have potential problem in gnat > windows editions. > does any body know the problem and give me some suggestion. > thanks It doesn't look like either Ada or GNAT problem. You have a Windows thread [started from Visual Basic] which stack is too small. Under Windows, a DLL has no influence on the stack size of the caller's threads. At the time point it is too late to change anything. The caller's thread is already running. So don't create large objects on the stack. It is a bad idea. However, refer to Visual Basic documentation, you will definitely find a way of increasing the stack of Basic threads [if there could be more than one.] For further information look MSDN: "Platform SDK: DLLs, Processes, and Threads", Thread Stack Size. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de