LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL Call Library Function in Win7 system Gets Error 1097

Hi,

 

I am trying to call dll in a vi file. It works fine in Windows XP system, but when I copy everything to Win7 32bit system, it gets error 1097 "An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW. Verify the values you wired to the Call Library Function Node."

 

I am using labview2009. Any ideas? Need more info?

 

Thanks in Advance!

Matt

0 Kudos
Message 1 of 5
(3,491 Views)

What exactly does your DLL do? Window 7 locks down access to certain things, so you may well be runnning into permissions issues. Otherwise, you will need to provide us what the function that you're calling is doing.

0 Kudos
Message 2 of 5
(3,476 Views)

this means that there's an error or something in your code that labview doesn't like... this can range from "division by zero" or some other logical fault (access to zero pointer) to a memory allocation without deallocation, which leads to a labview error..

 


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 3 of 5
(3,470 Views)

The dll can change resolution and refresh rate of display and run an exe file to display certain pattern(ie all white screen). I don't have the source code for the dll yet. But I can get it if it's really needed.

 

Thanks, 

Matt

0 Kudos
Message 4 of 5
(3,449 Views)

Have you tried to call this DLL from another programming environment to determine if the issue is with Windows 7 or with LabVIEW? Have you verified with whomever wrote the DLL that it will work on Windows 7? Windows 7 did change quite a few things, and things that worked in XP don't always work in Windows 7.

0 Kudos
Message 5 of 5
(3,443 Views)