Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 21 Jan 2002 14:57:14 -0600 From: Tim Subject: RE: DLL And Visual Basic To: cygwin AT cygwin DOT com Message-id: <008c01c1a2be$3438ace0$fa34fea9@rineco.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Microsoft Outlook Express 5.50.4522.1200 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal Kevin, > Third - you called your test function from within Form_Load. This will > only > (normally) run once for any particular form. So, I added a button to > your > form, and moved "i = doit(100)" into the new Button1_Click function. > > Works perfectly for me... I had placed it in Form_Load for quick testing, but this in fact was the cause of the problem (although I'm not sure why, but that's not Cywin's problem). Seems to me that I've run into this before, but figured my current problem was my lack of knowledge of compiling dll's under Cygwin. ;-) > You might try compiling to an .EXE and running that, instead of running > inside the VB debugger... Many thanks for your comments and suggestions. Once taken out of Form_Load it worked fine in both development mode and EXE no matter how many times I made the call. Best Regards, -tim --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.307 / Virus Database: 168 - Release Date: 12/11/01 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/