Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5355

32-bit executable does not run in Windows Server 2008

$
0
0

Hi,

Sorry if this question has been asked already. I am having trouble finding a solution in the NI knowledge base and here in the forums.

I just created a simple UI standalone application in Labwindows/CVI with UI. It runs perfectly in XP when it was developed. When I ported this over to the Windows Server 2000 target and tried to run it, it is stuck in a Windows console and will not spawn main(). I tried both rebuilding it on the 64-bit machine as well as just running the exe as is, yielding the same results. I also tried running corflags against the exe on both the 32-bit dev machine and the 64-bit target but both output says "The specified file does no thave a valid managed header", which seems to be true for all CVI exe files.

Through some troubleshooting, I was able to narrow it down to a call to a function in a dll (that apparently has already been working all along). If I comment out the two calls, main() would start and life is good again. I tried visually looking through the code in the project producing the dll and things are fine.

Can someone provide me with some insight into how to proceed on this? Was it a bad build? Did I not configure the build environment correctly (I already tried changing the stack/heap usage)? Could this be caused by a bug in the software that the compiler didn't catch? What typically causes a freeze in the console that spawns main()?

Please help! Thanks in advance!

EDIT: BTW, I'm running LabWindows/CVI 2009 on both machines.


Viewing all articles
Browse latest Browse all 5355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>