Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB6 and Cache - HELP

158 views
Skip to first unread message

Martin Keywood

unread,
Apr 29, 1999, 3:00:00 AM4/29/99
to
I'm developing a GUI front end to our application using VB6 on Windows 95
and the Cache ActiveX control to connect to my M data.

VB6 is forever crashing with a 'This program has performed an illegal
operation and will be shut down blah blah blah' and brings VB6 down. If I
close this error window it whinges about a Run time error in VB6 with the
message 'R6016 - not enough space for thread data'.
9 times out of 10 I then have to power off and run scandisk etc etc

This is happening at random places throughout the application, on various
machines and only when developing. If I compile it as EXE's or whatever they
run fine and never crash.

Please does someone know how to resolve this problem, or even where the
problem lies, I feel it must be the Cache ActiveX Control as this error
NEVER appears if doing pure VB6 work.

Thanks in advance.

Martin Keywood.

John Murray

unread,
Apr 29, 1999, 3:00:00 AM4/29/99
to
Martin Keywood <Martin....@euroking.com> wrote in message
news:37287...@news.proweb.co.uk...

I've seen this too, while using the Cache Object Link control to develop a
sample that shows off our new Serenji debugger's ability to let you step
through server-side Cache code seamlessly from the VB IDE. I think it's a
bug with ISC's control. Perhaps it'll be fixed in the forthcoming 3.1
release.

John Murray

Step Beyond with Serenji debugger

http://www.georgejames.com/serenji

George James Software
42 High Street, Shepperton
Middlesex TW17 9AU, UK
+44 (0)1932 252568 Telephone

Email mailto:jo...@georgejames.com
Web http://www.georgejames.com/

David Hadley

unread,
Apr 29, 1999, 3:00:00 AM4/29/99
to
Have you tried looking at the virtual memory settings of you development PC,
adding extra memory or making sure no other software is working at the time
e.g. web servers.

I would be interested to know what the spec. of machine you can comfortably
develop Visual M applications as I will be starting development myself soon

David Hadley

Martin Keywood wrote in message <37287...@news.proweb.co.uk>...


>I'm developing a GUI front end to our application using VB6 on Windows 95
>and the Cache ActiveX control to connect to my M data.
>
>VB6 is forever crashing with a 'This program has performed an illegal
>operation and will be shut down blah blah blah' and brings VB6 down. If I
>close this error window it whinges about a Run time error in VB6 with the
>message 'R6016 - not enough space for thread data'.
>9 times out of 10 I then have to power off and run scandisk etc etc
>
>This is happening at random places throughout the application, on various
>machines and only when developing. If I compile it as EXE's or whatever
they
>run fine and never crash.
>
>Please does someone know how to resolve this problem, or even where the
>problem lies, I feel it must be the Cache ActiveX Control as this error
>NEVER appears if doing pure VB6 work.
>

Bob Wells

unread,
May 6, 1999, 3:00:00 AM5/6/99
to
Without seeing your exact problem, we have recently added a workaround for
a published Microsoft bug in Win95/98's loader. Briefly, when unloading
DLLs, it doesn't keep proper track of the use count and may prematurely
unload a dependent DLL. When a DLL's use count goes to zero, all of its
dependents are unloaded, even though they may still be in use by other
components. Any subsequent reference to that DLL - even just trying to shut
down - gives errors like illegal operation or protection. The solution is
to do extra LoadLibrary's - in the application, the OCX in this case - at
the beginning of shutdown. The culprits seem to be MSVCRT.DLL (the C
runtime) and MFC42.DLL (the MFC runtime).

The problems could occur at application shutdown or at design time when
individual forms with OCXs are unloaded, taking their dependent DLLs with
them.

The modified VisM.OCX is available from InterSystems.

At 12:23 PM 4/29/99 -0400, you wrote:
>Martin Keywood <Martin....@euroking.com> wrote in message
>news:37287...@news.proweb.co.uk...

>> I'm developing a GUI front end to our application using VB6 on Windows 95
>> and the Cache ActiveX control to connect to my M data.
>>
>> VB6 is forever crashing with a 'This program has performed an illegal
>> operation and will be shut down blah blah blah' and brings VB6 down. If I
>> close this error window it whinges about a Run time error in VB6 with the
>> message 'R6016 - not enough space for thread data'.
>> 9 times out of 10 I then have to power off and run scandisk etc etc
>>
>> This is happening at random places throughout the application, on various
>> machines and only when developing. If I compile it as EXE's or whatever
>they
>> run fine and never crash.
>>
>> Please does someone know how to resolve this problem, or even where the
>> problem lies, I feel it must be the Cache ActiveX Control as this error
>> NEVER appears if doing pure VB6 work.
>

Hulsey, Bruce B

unread,
May 6, 1999, 3:00:00 AM5/6/99
to
Greetings!

Where can I find this modified VisM.ocx? I don't see it on InterSystems'
web site anywhere.

This kind of thing drives me nuts. I've had an open support call for what
is probably the exact same problem (page faults on shutdown of any Visual M
application) for over three weeks. I haven't heard a single word from
InterSystems support in over two weeks regarding the problem. Am I better
off posting my support calls to comp.lang.mumps instead?

---
Bruce Hulsey
Arkansas Cancer Research Center
University of Arkansas for Medical Sciences

0 new messages