🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #427

LocalAlloc fails in Visual Basic Control-Help!

#427
From: Keith Bedford
Date: Thu, 16 Apr 1992 08:49
25 lines
1616 bytes
Having written a Visual Basic Control using the Control Development Kit,
I get a General Protection fault calling LocalAlloc.

Does anyone know if this is a bug in the CDK, a restriction of the CDK,
a restriction in DLL's in general, or have any helpfull suggestions?

Changing the code to do GlobalAlloc makes everything work fine, but I cant
do this for real as Global memory belongs to the DLL client under whose
task it was allocated - when that client terminates the Global memory 
disappears but the DLL remains (assuming another client is using it)
and UAE's when it tries to access the global memory!

I've tried Microsoft support (in the UK) - they expressed surprise and
said they would try it and get back to me.  I'm still waiting.

Thanks in advance for any help
==============================================================================
  Keith Bedford				keith.bedford@hemel.bull.co.uk
  Bull Special Products Division
  Maxted Road  -  UK03-HM14
  Hemel Hempstead
  Herts  HP2 7DZ		Tel:	+44-442-88 4250
  England			Fax:	+44-442-88 4570
==============================================================================
Technical Details
Message-ID: <1992Apr16.084937.12524@hemel.bull.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!cass.ma02.bull.com!pluto.hemel.bull.co.uk!keithb

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!cass.ma02.bull.com!pluto.hemel.bull.co.uk!keithb
From: keithb@hemel.bull.co.uk (Keith Bedford)
Subject: LocalAlloc fails in Visual Basic Control-Help!
Message-ID: <1992Apr16.084937.12524@hemel.bull.co.uk>
Summary: LocalAlloc fails in Visual Basic Control
Sender: @hemel.bull.co.uk
Nntp-Posting-Host: brno
Organization: Bull HN UK
Date: Thu, 16 Apr 92 08:49:37 GMT
Lines: 25