delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/21/15:59:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <tjbynum AT swbell DOT net>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019