NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Message Box with custom fonts work with Teststand 3.0?

Getting the following error after selecting Edit Meassge Settings.
File "editdlg.c" line 47, column 21
array argument too small(47 bytes) Argument must contain at least 4292967295(4292967295 elements)
0 Kudos
Message 1 of 6
(3,621 Views)
Alan H,

I tried out the example (I'm assuming you mean the Developer Zone example program Message Popup Step Type With Custom Fonts). It seemed to work correctly for me using TestStand 3.0. I'd recommend making sure the support files are all in the correct location as the instructions indicate.

If you continue to have problems, please let us know. It will be easier to help solve the problem with a good description of your system and the events leading up to this error.

Regards,
Shannon R
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,621 Views)
Shannon,

I reinstalled the files. Following the instructions, open the sequence msgboxfonts.seq, then right click on the message popup and select Edit Message Settings get the following error.
Error executing substep 'Edit'
System level exception
Error code -17502
The sequence will run fine.
I am running Windows 2000.

Thanks,
Alan
0 Kudos
Message 3 of 6
(3,621 Views)
Alan,

Since the edit substep seems to be the problem, my first recommendation would be to look at the step type and make sure it can find the required code module to execute the edit substep. To do this, go to Sequence File Types within msgboxwithfonts.seq and right-click on MessagePopup_copy. On the substeps tab, select the Edit substep and choose Specify Module. Make sure the the step is pointing to msgbox.dll and the EditMessageBoxStep function. If it isn't already pointing to that location (or if it is, but it can't find the modules) browse to where that code module can be found.

I hope this helps. I'm also going to get a 2000 system and confirm that I can use the example. I tried it on my computer with XP, TestStand 3.0 and it worked. I'll let
you know tomorrow what the result is, unless you post and let me know that the fix worked.

Regards,
Shannon R
Applications Engineer
National Instruments
0 Kudos
Message 4 of 6
(3,621 Views)
Shannon,

The step is pointing to msgbox.dll.

Also I have a second system running 2000,Teststand 2.0.1. and msgboxfonts. This system was working with msgboxfonts but has not be changed since June. I am wondering if this could be an update to 2000 that has caused the problem.

Thanks

Alan
0 Kudos
Message 5 of 6
(3,621 Views)
Alan,

I just tested on 2000 and it works fine. The PC I used had Service Pack 2 installed with TestStand 3.0.

At this point, I'd recommend opening up the msgbox.dll source code in CVI. The workspace is msgbox.cws. In the editdlg.c file, there is a function called "InitializePanelWithStepSettings". This is the function that is called when you right-click and choose "Edit Message Settings". I'd put a breakpoint in the c file and build the DLL for debug. Then run the code from TestStand and step through the code until you see the error.

If you aren't sure what the error is, you can let us know the line of code that is the problem and the results you get and we can take a deeper look into it. At this point, with no error to deb
ug on our side, it's fairly difficult to pinpoint the problem.

Let us know if you have more questions.
Shannon
0 Kudos
Message 6 of 6
(3,620 Views)