This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: DLL And Visual Basic


> 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,

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.307 / Virus Database: 168 - Release Date: 12/11/01

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]