Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why would floating-point operations in my MetaWINDOW application using Phar Lap TNT cause my program to crash?

0
10 Posted

Why would floating-point operations in my MetaWINDOW application using Phar Lap TNT cause my program to crash?

0
10

ANSWER When linking a Phar Lap TNT MetaWINDOW application that includes floating-point operations you must explicity specify the order for the MetaWINDOW data segment for it to link properly. The problem appears that the MetaWINDOW data segment GRAFIX_DATA is being overwritten upon load when the floating point runtime code is also linked in. From the link map there is no evidence that this is happening. The starts and length of each segment show up as fine. When debugging however, prior to any MetaWINDOW calls, if the GRAFIX_DATA segment is dumped, it is corrupted about 2/3 of the way into it. It is unclear why, but if you tell the linker to link the MetaWINDOW data segment first, then it loads ok. To correctly load the MetaWINDOW data segment, modify the Phar Lap response file MSVC32.DOS or MSVC32.

0

ANSWER When linking a Phar Lap TNT MetaWINDOW application that includes floating-point operations you must explicity specify the order for the MetaWINDOW data segment for it to link properly. The problem appears that the MetaWINDOW data segment GRAFIX_DATA is being overwritten upon load when the floating point runtime code is also linked in. From the link map there is no evidence that this is happening. The starts and length of each segment show up as fine. When debugging however, prior to any MetaWINDOW calls, if the GRAFIX_DATA segment is dumped, it is corrupted about 2/3 of the way into it. It is unclear why, but if you tell the linker to link the MetaWINDOW data segment first, then it loads ok.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123