Solved

Problem porting 16bit to 32bit

Posted on 2000-02-25
1
213 Views
Last Modified: 2010-04-04
I have a simple Delphi application written in Delphi 1.0 which works fine on Windows 3.1/95/NT.
I opened the project in Delphi 3.0 and recompiled the source. The 32bit EXE runs fine on Windows 95 but when i try to run it on Windows NT i get an access violation in 'ntdll.dll' and a runtime error 216.

Any ideas as to why ?

Thanks Paul.
0
Comment
Question by:pr_wainwright
1 Comment
 

Accepted Solution

by:
arcrotty earned 100 total points
ID: 2560386
My guess is that it is accessing memory out of the programs allocated memory.  NT is a bit more protective about that.

Whatever your code is doing to allocate and use memory, make sure you assign a value of NIL to each items as you free them memory and check to make sure it's not NIL before you read the value from the data that it points to.

Let me know if that helps.  You didn't give much information.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now