LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate instances of application on windows xp

Hi
 
I have created an application that works great on windows 2000 but on windows xp and maybe vista, i am having a problem.  The problem is that I have a vi , call it "startup.vi", that opens another v,i call it "main.vi", and then closes itself only.  When i create an application and run on Windows 2000 it works fine, however when I run it on Windows XP it functions correctly but i get two instances at the bottom of the window. (refer to attached picture dublicateinstances.jpg).  Reason for this seems to be that the Startup.vi opens one instance and when it call the main.vi it opens up another instance.  The startup then closes upon calling the main.vi but it does not close the first instance. 
 
I believe the problem is with the way i might have coded the startup.vi.  Attached is a small example of how the startup.vi is coded.  Any Help?
 
Thanks
 
Reza
 
 
 


Message Edited by reza_sed on 01-22-2008 03:22 PM
Download All
0 Kudos
Message 1 of 4
(2,715 Views)
Hi Reza.  Have you tried adding HideRootWindow=True in your [application].ini file?

http://forums.ni.com/ni/board/message?board.id=170&message.id=18417&requireLogin=False


Matt
0 Kudos
Message 2 of 4
(2,702 Views)
Hi Reza,

I'm using Windows XP and your code seems to work for me (no duplicate instance). Have you tried testing this on another XP machine?

Rename Main4.vi to Main.vi.

Regards,
Stanley Hu
National Instruments
Applications Engineering
http://www.ni.com/support


Message Edited by stanthetiger on 01-23-2008 12:49 PM
Download All
0 Kudos
Message 3 of 4
(2,675 Views)

 

Yeah its a little wierd cause it seems to work on some Xp machines but not in some others.  Anyways i tried HideRootWindow=True as Matt suggested and it seems to be working.......for now

Thanks

0 Kudos
Message 4 of 4
(2,647 Views)