Steve,
If your DLL is a Delphi DLL, which uses Delphi's string types, then the DLL needs to share memory management for those strings with the application, hence you include ShareMem.DLL. If you are not using strings, or are using PChars, then you don't need it.
Kind regards,
  Andrew.
-----Original Message-----
From: Steve Aish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 July 2001 6:31 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: How to track this one down...

AHAH!!!  I fixed this by removing 'ShareMem' from one of my Uses clauses.  Could you imagine how long this would take to find if you had no idea what the problem was - searching through 12,000 lines of code?
 
I just love these challenges (tone dripping of sarcasm).
 
What is this?  I put this there because I am using an external DLL and read somewhere that you need one for some reason.
 
Interesting one...
 
Steve 
-----Original Message-----
From: Steve Aish [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 July 2001 12:27
To: Multiple recipients of list delphi
Subject: [DUG]: How to track this one down...

I have an interesting bug that has just turned up.
 
I have been developing a program for the last 3 months - on and off.  Suddenly whenever I close the program after running it I get the following error:
 
Project POSVis.exe raised Exception Class EInvalidPointer with Message 'Invalid Pointer Operation'. Process Stopped. Use step or run to continue.
 
After pressing OK and continuing I get 'Runtime Error 217 at 00003F02'
 
The annoying thing is that it is after all my code is run and the program is doing it's automatic clean up thing.
 
If I step through the code after the exception is raised it stops at:
 
  Application.CreateForm(TMain, Main);
  Application.CreateForm(TUpdateDatabase, UpdateDatabase);
  Application.CreateForm(TWaiting, Waiting);
  Application.Run;
end.   <----- code stops here
 
I can't figure out how one would step through the code after this.
 
The only way of getting rid of this is to delete about half of my forms...  Does anyone know how to step through the cleanup process?
 
Steve

Attention:
The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you have received this message in error, please notify the sender immediately.

Reply via email to