This is the mail archive of the
mailing list for the Cygwin project.
RE: DLL And Visual Basic
- From: Tim <tjbynum at swbell dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 21 Jan 2002 14:57:14 -0600
- Subject: RE: DLL And Visual Basic
> Third - you called your test function from within Form_Load. This will
> (normally) run once for any particular form. So, I added a button to
> 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.
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