LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

When using the new controls of CVI 7 in my DLL it crash on the DisplayPanel call

I have a CVI DLL that was build under CVI 6. When I recompile it in CVI 7 everything works fine when I load the DLL from my application. But If I add a button on my uir file with the new CVI 7 style (no event code associated, just a plain button) my DLL crash and hang my main application on the DisplayPanel call. If I don't use the new controls (use the classic-style controls) everything works fine. I use LoadPanelEx to load my uir file. The returned panel handle is good (> 0) But when I call DisplayPanel it doesn't show me any error but just crash my DLL and jump back in the DLLMain function saying that my process is detaching and hang my main application.

I am running on Win2k. I have
LabVIEW 7 and LabVIEW 6.0.2 installed also. The main application that calls the DLL is made in Delphi 6.

I have re-installed the run-time engine from the CDs but this didn't do the trick. Is there something else that I must include with my DLL to use thoses new controls styles. The DLL is running from the same place where it was build.
0 Kudos
Message 1 of 5
(3,747 Views)
Gilles,

The main difference of the classic controls and the LabStyle is the implementation. Lab-style controls rely on OpenGL for the 3D look; where as classic controls use regular GDI as an implementation.

The first thing to try is to see if the problem is related to this specific project or every UI using the Lab-Style controls. This will tell if there is a problem with OpenGL or something specific to the project; upgrading the video driver or installing a service pack for the OS may help get OpenGL back up.

Let me know how this goes or if you have further questions on this.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 5
(3,747 Views)
Hi,
I have created another cvi DLL and it create the same behavior in my application (crash on DisplayPanel). But if I do a standalone CVI executable with thoses new buttons everything is fine. Also I have created another application(in Delphi) to load the cvi-dll and it works fine in that one. So I would tend to say that it is in my application but on the other hand everything works fine if I don't put thoses LabStyle controls...Weird I know...

In shorts It is just crashing with a specific application but for any UI project that I create. If I don't put thoses buttons everything is ok...Any other advises would be helpful because I'm kind of out of ideas...

Gilles Hache
0 Kudos
Message 3 of 5
(3,747 Views)
Hey Gilles,

I am having same problem with a DLL made in CVI7.0. If I use labview style controls in the DLL, the Display panel hang up. When I used old classic controls, everything worked fine.
0 Kudos
Message 4 of 5
(3,747 Views)

Hello, I had exactly the same problem under Windows XP SP3 and found the solution. Apply the patch from

http://support.microsoft.com/kb/956048/en

this does help

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