Unexplained error with custom events
LabVIEW 8.6.1f1, Win Vista
I have an error an once-in-a-blue-moon in my program, I need to track down.
I have it boiled down to a simple test case, where the error occurs more frequently (but still relatively rarely).
I have a program called MERS, which is separated from my main code HDT.
TCM can run on a separate machine, but for this test, it is on the same machine, running under the development of LV system.
This test simply opens a TCP connection to the TCM, calls for a "signature", it receives and stop the connection.
The part that opens the connection starts also the TCM RECEIVER running, and kill the connection stops this receiver.
Here's the code for the main event, and you can see that I get an error apparently because I get no response in MS 2000:
---------
The code to GET the SIGNATURE of TCM is here: what it does is to send a request for the signature and then waiting for an event SIGNATURE RECEIVED by the RECEIVER, or a timeout 2000 mSec.
The error that I get (-100005) comes from there. If the TCM has failed to respond, it would look like this. Indeed, this is why the timeouot trap is here.
-----------
However, here is the code of the receiver and the Panel, immediately after a failure.
It is clear from the TABLE that he received the SIGNATURE of TCM TCM.
There are NO orders in the table indicates that the receiver was still running for 2000 mSec (4 x 500 mSec) after receipt of the order.
When it receives a SIGNATURE, the code written will trigger an event. No errors are reported here.
So what's happening? It seems that the event should be raised, but it is not received (Event #0 in photo #2 reacts to the event and returns the word signature, without error).
This happens not all the time - this case is broken loop # 211 - this number is between 20 and 2000.
With all those open windows in fact do more often: without them always fails, but she performs thousands of do loops.
So perhaps it is related to the CPU bustle.
I checked that there is no error with the function SAVE of EVENTS, even when it fails.
I come back to the fact that the PICTURE in photo #3 says that the signature was received, but it seems that the EVENT did not get generated or received.
What are the causes that?
Is it possible that, since the receiver is dynamically loaded and run, that things are not really created and ready when he says they are?
OK, that seems to have fixed. -He managed 5000 loops, with the windows open and no failure.
How completely obvious it sounds, when I put it in words:
Don't ask a question until you are ready to hear the answer.
The revised registers for events and THEN asks for the signature.
So, when the answer comes, even if it is immediately, you're ready.
Don't ask a question until you are ready to hear the answer.
Don't ask a question until you are ready to hear the answer.
Don't ask a question until you are ready to hear the answer.
Don't ask a question until you are ready to hear the answer.
Don't ask a question until you are ready to hear the answer.
Tags: NI Software
Similar Questions
-
I'm trying to figure out this problem I'm having with custom events, I've read all the documents and tutorials that I can find, and this bit still makes no sense.
I have the following configuration:
LoginForm: custom component (which is created as a popup via the PopupManager)
ApplicationHeader: custom component (which is added to the MXML application)
application: creates the LoginForm as a popup via the PopupManager, has ApplicationHeader defined in the MXML.
When a user logs in the LoginForm dispatches an event customized, there are two defined listeners:
1. in the application:
private void showLoginForm(): void {}
var loginForm:LoginForm = LoginForm (PopUpManager.createPopUp (this, LoginForm, true));
loginForm.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
}
2. in the component custom of ApplicationHeader :
private function init (): void {}
parent.addEventListener (UserLoggedInEvent.USERLOGGEDINEVENT, userLoggedInHandler);
}
When the event is dispatched the request listener picks it up as expected, however the listener inside the custom component sees ever-even if the event is set to bubble.
The only way I managed to get this working is to do the following in the application:
private void userLoggedInHandler (event:UserLoggedInEvent.USERLOGGEDINEVENT): void {}
// .. the event handling logic
the return of the event
dispatchEvent (event);
}
This makes no sense at all, what happens if I didn't want the application to handle the event itself. There is a line in the documentation of the event
who says "You can only save a listener of events with an object if that object dispatches the event." who could explain it, but it is still absurd.
Any help/tips/examples would be most useful as I am pulling my hair out here.Never mind, I just read this post ( http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid = 1257178 & highlight_key = y & keyword1 = custom % 20components) and I was pointed in the right direction - I had to add the metadata for the event to the application.
-
Calculation of error with custom DAQ scaling of the 4-20mA signal
Hello
I use the material for the acquisition of data NI USB 6009 and Labview 10.0.1. I use the DAQ assistant to acquire a signal 4-20 mA, which works perfectly well. I tested with a waveform graph and the range of the machine corresponds to the current signal.
Now, when I use a custom in the DAQ assistant, after about 4, scale 8mA the value of 'x' does not. I don't get an error, or whatever it is, it seems that there is an upper limit. When I turn off the custom scale, I see that there is nothing wrong with the signal to my.
Can someone help me how to solve this problem?
Welcome,
Dominic
Nevermind, solved the problem. I didn't know that the scope of the input signal must be set globally. Once this is done, the problem was gone.
-
Doc protocal identification error with custom doc
Hello
I'll set up a scenario where the remote sends an xml file to the host. This is a custom xml file, and the b2b host should accept this file and the report properly within the scope of b2b.
I created a custom B2b management document. For the customized document, I gave version, name of doc, doc definition as "custom".
I created hosts, remote partners, agreements and deployed.
I placed an xml (from xsd) file in the ftp folder. B2B reads the file in the folder ftp and gives error of identification Document Protocol. Please let me know if the steps I am following is correct?
Thank you
Ganesh
Message from the company:
ID 7F00000112AA1FF00AD0000034BD111D
Message Id 7F00000112AA1FEF8CF0000034BD1119
Refer to the Message to refer to the Message
Type name of the sender
The sender value Remote
Type name of recipient
Receiver Host value
Distance of the sender
Receiver host
The agreement ID
Agreement
Type of document
Protocol document
Version of the document
REQ message type
Direction of traffic ENTERING
MSG_ERROR State
Mode of recognition NO
ASYNCHRONOUS response mode
Timestamp sent Tuesday, August 24, 2010 12:48:15 PM GMT + 10:00
Receive information of an hour Tuesday, August 24, 2010 12:48:15 PM GMT + 10:00
Cooldown document 0
Remaining document retry 0
3763 native messages size
Translated Message size
Name of the Action
Name of Business Transaction
XPath name1
XPath Value1
XPath Expression1
XPath Name2
XPath Value2
XPath Expression2
XPath Name3
XPath Value3
XPath Expression3
Correlation of XPath name
Correlation of the XPath value
Correlation of XPath Expression
Correlation with the name of XPath
Correlation with the XPath value
Correlation of XPath Expression
The Message wire
Application Message Message from the Application
Payload, Payload storage
Attachment attachment
Label
ID of the collaboration
Collabration name
Collabration Version
Name of the Action
Exchange generic name FTP protocol
Version 1.0 of the Protocol Exchange
The exchange control number
The group control number
Transaction control number
B2B-50083 error code
Error Description Machine Info: (localhost) Description: Protocol for the identification of the Document error.
ERROR_LEVEL_COLLABORATION error level
Severity of the error
Text Protocol for error identification document.
xsd:
<? XML version = "1.0" encoding = "UTF-8"? >
< xs: schema xmlns: XS = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "qualified" >
< xs: element name = "order" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "order" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "order" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "orderheader" / >
< xs: ELEMENT maxOccurs = "unbounded" ref = "orderdetail" / >
< xs: ELEMENT ref = "ordertrailer" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "orderheader" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "deliverylocationcode" / >
< xs: ELEMENT ref = "deliverylocation" / >
< xs: ELEMENT ref = "deliveryaddress1" / >
< xs: ELEMENT ref = "deliveryaddress2" / >
< xs: ELEMENT ref = "deliveryaddress3" / >
< xs: ELEMENT ref = "deliveryaddress4" / >
< xs: ELEMENT ref = "invoicename" / >
< xs: ELEMENT ref = "invoiceaddress1" / >
< xs: ELEMENT ref = "invoiceaddress2" / >
< xs: ELEMENT ref = "ordernumber" / >
< xs: ELEMENT ref = "orderdate" / >
< xs: ELEMENT ref = "means" / >
< xs: ELEMENT ref = "requireddeliveryfrom" / >
< xs: ELEMENT ref = "requireddeliveryto" / >
< xs: ELEMENT ref = "terms" / >
< xs: ELEMENT ref = "currencycode" / >
< xs: ELEMENT ref = "currency" / >
< xs: ELEMENT ref = "shippinginstructions" / >
< xs: ELEMENT ref = "suppliercode" / >
< xs: ELEMENT ref = "suppliername" / >
< xs: ELEMENT ref = "supplieraddress1" / >
< xs: ELEMENT ref = "supplieraddress2" / >
< xs: ELEMENT ref = "supplieraddress3" / >
< xs: ELEMENT ref = "suppliercontact" / >
< xs: ELEMENT ref = "suppliertelephone" / >
< xs: ELEMENT ref = "buyercode" / >
< xs: ELEMENT ref = "buyername" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "deliverylocationcode" type = "Integer" / >
< xs: element name = "deliverylocation" type = "xs: String" / >
< xs: element name = "deliveryaddress1" type = "xs: String" / >
< xs: element name = "deliveryaddress2" type = "xs: String" / >
< xs: element name = "deliveryaddress3" type = "xs: NCName" / >
< xs: element name = "deliveryaddress4" type = "Integer" / >
< xs: element name = "invoicename" type = "xs: String" / >
< xs: element name = "invoiceaddress1" type = "xs: String" / >
< xs: element name = "invoiceaddress2" type = "xs: String" / >
< xs: element name = "ordernumber" type = "Integer" / >
< xs: element name = "orderdate" type = "xs: String" / >
< xs: element name = "means" type = "xs: String" / >
< xs: element name = "requireddeliveryfrom" type = "xs: String" / >
< xs: element name = "requireddeliveryto" type = "xs: String" / >
< xs: element name = "terms" >
< xs: complexType / >
< / xs: element >
< xs: element name = "currencycode" type = "xs: NCName" / >
< xs: element name = "currency" type = "xs: String" / >
< xs: element name = "shippinginstructions" >
< xs: complexType / >
< / xs: element >
< xs: element name = "suppliercode" type = "Integer" / >
< xs: element name = "name" type = "xs: String" / >
< xs: element name = "supplieraddress1" type = "xs: String" / >
< xs: element name = "supplieraddress2" type = "xs: String" / >
< xs: element name = "supplieraddress3" type = "xs: NCName" / >
< xs: element name = "suppliercontact" type = "xs: String" / >
< xs: element name = "suppliertelephone" type = "Integer" / >
< xs: element name = "buyercode" type = "Integer" / >
< xs: element name = "buyername" type = "xs: String" / >
< xs: element name = "orderdetail" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "itemlineno" / >
< xs: ELEMENT ref = "itemcode" / >
< xs: ELEMENT ref = "DescriptionArticle" / >
< xs: ELEMENT ref = "itemarticle" / >
< xs: ELEMENT ref = 'itemsize' / >
< xs: ELEMENT ref = "itemcolour" / >
< xs: ELEMENT ref = "itemqty" / >
< xs: ELEMENT ref = "itemunitcost" / >
< xs: ELEMENT ref = "itemtotalcost" / >
< xs: ELEMENT ref = "caseqty" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "itemlineno" type = "Integer" / >
< xs: element name = "itemcode" type = "Integer" / >
< xs: element name = "itemdescription" type = "xs: String" / >
< xs: element name = "itemarticle" type = "xs: NMTOKEN" / >
< xs: element name = 'itemsize' >
< xs: complexType / >
< / xs: element >
< xs: element name = "itemcolour" >
< xs: complexType / >
< / xs: element >
< xs: element name = "itemqty" type = "Integer" / >
< xs: element name = "itemunitcost" type = "xs: Decimal" / >
< xs: element name = "itemtotalcost" type = "xs: Decimal" / >
< xs: element name = "caseqty" type = "Integer" / >
< xs: element name = "ordertrailer" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "notes" / >
< xs: ELEMENT ref = "taxreference" / >
< xs: ELEMENT ref = "remarks1" / >
< xs: ELEMENT ref = "remarks2" / >
< xs: ELEMENT ref = "TotalCost" / >
< xs: ELEMENT ref = "totalsticks" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "notes" type = "xs: String" / >
< xs: element name = "taxreference" >
< xs: complexType / >
< / xs: element >
< xs: element name = "remarks1" type = "xs: String" / >
< xs: element name = "remarks2" >
< xs: complexType / >
< / xs: element >
< xs: element name = "TotalCost" type = "xs: Decimal" / >
< xs: element name = "totalsticks" >
< xs: complexType / >
< / xs: element >
< / xs: Schema >
XML:
<? XML version = "1.0"? >
< commands >
< order >
< orderheader >
< deliverylocationcode > 16 < / deliverylocationcode >
......................................................................................................
< TotalCost > 2580.00 < / TotalCost >
< totalsticks > < / totalsticks >
< / ordertrailer >
< / order >
< / order >Hi Ganesh,
Have you provided Identification (XPath) Expression correctly in the document definition? Please check.
You can consult the section "7.1" using custom Document Protocol on link - below
http://download.Oracle.com/docs/CD/E14571_01/integration.1111/e10229/b2b_documents.htm#CHDEFFEH
Kind regards
Anuj -
Error with custom pre-process EventHandler
Hello
Process of generating the name to display in reverse order using, I'm preprocesses EventHandler on CREATE a user.
I use the java class, including the code:
Parameters HashMap < String, Serializable > = orchestration.getParameters ();
String firstName = (String) parameters.get (UserManagerConstants.AttributeName.FIRSTNAME.getId ());
String lastName = (String) parameters.get (UserManagerConstants.AttributeName.LASTNAME.getId ());
lastName = lastName.concat("");
String displayName = lastName.concat (firstName);
(UserManagerConstants.AttributeName.DisplayName.GetId (), displayName); parameters.put
but for the action of the user I get error to create:
oracle.iam.platform.entitymgr.InvalidDataTypeException: display name
Can someone give me some details what the problem?
The best
MP
Published by: J23 2011-12-28 14:54Display name must be placed in a Hashtable as follows:
Map dispNameMap = new HashMap(); dispNameMap.put("base", lastName+" "+firstName);
and then pass this card as:
parameters.put("Display Name", dispNameMap);
-Marie
-
Hello
I want to trigger an event to a class and listening to the other. There are several examples on the net but I don't really understand them. Can someone explain please how can I get the value of newTextInput in the lower class on the evolution and pick it up in another class.
public function changeHandler(event:Event):void{ } // Creates a text input public function setText(label:String, type:String, id:String):void{ var newFormItem:FormItem = new FormItem; var newTextInput:TextInput = new TextInput; newFormItem.label = label; newTextInput.id = type; newTextInput.text = id; newTextInput.addEventListener(Event.CHANGE, changeHandler); this.addChild(newFormItem); newFormItem.addChild(newTextInput); }
This is the class I want to get the value of newTextInput:
package components{ import mx.controls.TextArea; public class KamTextArea extends TextArea{ public var label:String; public var required:Boolean; public function KamTextArea(){ label = "Null"; required = false; } public function setupProperties(propertyInstance:PropertiesForm):void{ propertyInstance.setText('Label','label',this.id); propertyInstance.setBool('Required', 'required'); } private function update():void{ this.text = "df"; } } }
Thank you
You need to understand the basics of the custom events, please read the Adobe LiveDocs page:
So create a custom event and make the event type 'myEvent '.
Can have a property of the custom event to the value of newTextInput.
Your other class listens for the event and accessing the property of the event object that contains the value ofnewTextInput.
You may need to add the event listener to systemManager:
systemManager.addEventListener (MyCustomEvent.MY_EVENT, myHandler);
My post Cookboo Flex deals with custom events. It's a bit long, but if operate you locally, it can clarify certain points.
http://www.Adobe.com/cfusion/CommunityEngine/index.cfm?event=ShowDetails&ProductID=2&postI d = 11246
If this post answers your question or assistance, please mark it as such.
-
Cannot install McAfee on Windows XP. Errors with "Event Viewer".
Hello, I am writing on behalf of a client.
The customer has been in touch with the people of McAfee support for four days and they are still not able to install the antivirus program due to errors with Event Viewer. The people of McAfee asked the customer to reach the MS Support since then, as they say is a Windows problem.
The event viewer contains errors in the Service Control Manager,
DCOM, NetDDE.
That's my problem, put support in for me. Some fo include errors in the event viewer:
DCOM got error "the service did not to start or control request in a timely fashion." try to start WSearch service with arguments "" to start the server:
{7D096C5F-AC08-4F1F-BEB7-5C22C517CE39}
Details Product: Windows operating system ID: 7000 Source: Service Control Manager Version: 5.2 Symbolic name: EVENT_SERVICE_START_FAILED Message: The %1 service failed to start due to the following error:
%2Explanation (SCM, Service Control Manager) could not start the service specified, probably because the service is not configured correctly.
User action Do one or all of the following conditions:
- Check the error information displayed in the message.
- Check that the service password has not expired.
- Verify that the service is in the right place.
- Check that the service is not infected with a virus.
- To view the WIN32_EXIT_CODE as SCM error when you try to start the program, at the command prompt, type
application of SC name of the service
The displayed information can help you troubleshoot the possible causes of the error.If the WIN32_EXIT_CODE is zero, SCM did not attempt to start the service because the error was detected first.
Version: 5.0 Symbolic name: EVENT_SERVICE_START_FAILED Message: The %1 service failed to start due to the following error:
2%.Explanation (SCM, Service Control Manager) could not start the service specified, probably because the service is not configured correctly.
User action Do one or all of the following conditions:
- Check the error information displayed in the message.
- Check that the service password has not expired.
- Verify that the service is in the right place.
- Check that the service is not infected with a virus.
- To view the WIN32_EXIT_CODE as SCM error when you try to start the program, at the command prompt, type
application of SC name of the service
The displayed information can help you troubleshoot the possible causes of the error.If the WIN32_EXIT_CODE is zero, SCM did not attempt to start the service because the error was detected first.
There is currently no article for this specific error Microsoft Knowledge Base or an event message. For more information on other technical support options, you can use to find answers online, see http://support.microsoft.com/default.aspx. ++++++++++++++++++
Details Product: Windows operating system ID: 206 Source: NetDDE Version: 5.0 Component: System event log Message: Listen failed: %1 Explanation The computer expected data from another computer, but not the not received. The other computer does not send, or the thread on this computer that listens to the data has encountered an error.
There is currently no article for this specific error Microsoft Knowledge Base or an event message. For more information on other technical support options, you can use to find answers online, see http://support.microsoft.com/default.aspx. -
Problem with custom in an ActionScript component events
All,
I hope that my question is quite minor and front right to sort but for the life of me I can't understand it.
I wrote an ActionScrip component that performs a logic (transformation of coordinates grographic). Treatment can take a while and relies on calls to a number of server-based processes which are all works well. The process of transformation of coordinates is started with a call to a public method in the main application component.
helyx package
{
import flash.events.Event;
import flash.events.EventDispatcher;
Import mx.controls.Alert;
Import mx.rpc.events.FaultEvent;
[Event (name = "gridConverted_success" type = "flash.event.Event")]public static const SUCCESS: String = "gridConvert_success";
SerializableAttribute public class GridConverter extends EventDispatcher
{private void projectCompleteHandler(event:GeometryServiceEvent):void
{/ * logic to fill the _mgrsGrid variable * /.
var eventObject:GridConverted = new GridConverted (GridConverted.SUCCESS);
eventObject.mgrsGrid = _mgrsGrid;
dispatchEvent (eventObject);
}}
In addition to the ActionScript component which respects the transformation logic I also coded a separate custom event that returns the output of the transformation to the main application:
helyx package
{
import flash.events.Event;SerializableAttribute public class GridConverted extends Event
{
public static const SUCCESS: String = "gridConvert_success";
public void GridConverted (type: String, bubbles: Boolean = false, cancelable: Boolean = false)
{
Super (type, bubbles, cancelable);
}
public var mgrsGrid:String;
}
}In the main application that starts the process, I have the following code to add a listener for the event:
private function init (): void
{/ * other logics... * /.
addEventListener (GridConverter.SUCCESS, gridConvertedHandler);
}
private void gridConvertedHandler(event:Event):void
{
txtGrid.text = gridConverter.mgrsGrid ();
}My problem is that, while there is no error thrown 'gridConvertedHandler' is never called in response to the call 'dispatchEvent() '.
Grateful for any thoughts...
Tony
You have added an event listener to the main application class which is not the one that actually dispatches the event. The auditor should be added to the instance of your GridConverter class.
private function init (): void
{/ * other logics... * /.
myGc. addEventListener (GridConverter.SUCCESS, gridConvertedHandler);
}
-
Problem with custom validation error message record
Hi, so I'm having a problem of application an error message customized a validator backup. I ran the following SQL scripts and updated the XML file as follows:
INSERT INTO commonXLAExtensionCache VALUES (' 1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ")
"ClassificationRequired", "ReflectiveRequiredValidator", "Validation rules")
INSERT INTO commonXLAExtensionCacheItem VALUES ('1059666651E8-A7F7-447-8CF5-8EE1F467C20Q',
"1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ', 0, 'RequiredPropertyMessage ',.
' Specification must have a ranking< rule type '6501' = >
< event condition 'save' = >
< if type = "ReflectiveRequiredValidator" report = "true" required = "true" property = "ProductAttributes.Classifications" msgcache = "ClassificationRequired" / > "
< / condition >
< / rule >
I get an error message:
Server error in ' / gsm' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and its origin in the code.
Exception details: System.NullReferenceException: Object Reference not set to an instance of an object.
Source of error:You have the stack trace in the error message? Assuming it's the cache:
Give a try instead and see if that solves it.
Delete the original entry and change the name and the inheritfrom of the ValidationMessages/ReflectiveRequiredValidator message cache, as follows:
INSERT INTO commonXLAExtensionCache VALUES (' 1058811679F0-6F46-48FC - 9A 15 - 271EC9A7D0FQ ")
"ValidationMessages/ReflectiveRequiredValidator", "ValidationMessages/ReflectiveRequiredValidator", "Validation rules")
-
LR and PS will not update 'Download error' 49 customer service contact? anyone had this problem and how to solve? was running windows 8.1 and now running windows 10 but had the same problem with two BONES
Check your hosts file. to help with this and more:
Log, activation, or connection errors. CS5.5 and later, Acrobat DC
-
Error messages in Event Viewer
I get the following error messages in EV, please help to decipher and all the solutions, thank you:
1 - system shutdown prior to 29/01/13 to 18:14 was not planned.
2 - the system has rebooted without clearly stop the first. This error can be caused if the system is not responding, crushed, or lost power unexptedly.
3 session "Microsoft Security customer OOBE" stopped because of the following error: 0xC000000D.
4 audit events have been abandoned by public transport. 0
5 - the SNMP Service encountered an error when accessing the registry SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration key.
6 - the computer has restarted after a bugcheck. The bugcheck was: 0 x 0000000024 (0x9f693698, 0x9f693270, 0x001904fb, 0x8af32c51). A dump was saved in the: C:\Windows\MEMORY. DMP. Report ID: 012913-25890-01.
7 - the print spooler cannot start because the PrinterbusEnumerator could not start. Error code 0 x 490. This can happen due to instability of the system or a lack of system resources.
8 - custom dynamic link libraries are loaded for each application. The system administrator should review the list of libraries to ensure that they are linked to trusted applications.
9 - the next (s) start or system start could not load:
amacpi
mssmbios
I am particularly concerned about #8 - libraries of custom applications loading dynamic links... (doesn't look good)
I might suggest that your support align more closely the event viewer, since this is a descrept of the activity log, and that it be made possible to COPY the EV, WHO SHE does APPEAR TO BE POSSIBLE CURRENTLY.
Anyway, your help to clarify and solve these problems is appreciated.
Hi Al Adams,.
Welcome to the Microsoft Community and thanks for posting the question.
From the description, it seems you are trying to find errors in the Event Viewer logs.
Files related to the way Windows dynamic link library communicates via the network and the Internet, most often related to Microsoft Outlook applications
Event logs are special files events important folders on your computer, for example when a user connects to the computer or when a program encounters an error. As soon as these types of events occur, Windows records the event in an event log that you can read by using Event Viewer.
It would be great if you can answer this question in order to help you further.
Are you facing any problem with the operating system?
Reference: http://windows.microsoft.com/en-IN/windows7/What-information-appears-in-event-logs-Event-Viewer
Hope this information is useful, if you have questions/suggestions more associated with Windows do not hesitate to post and we will be happy to help you.
-
Unexplained error "NaN".
Hello
I was changing an existing script to customize for my application. I'm running into an error that I do not understand:
"Not enough parameters label were selected.
See red text in the code below for in such cases. Thanks for your help.
///////////////////////////////////////////////////////////////
//
Script of numbering batch (Actions) of the document (e.g., marking)
by Thom Parker, WindJack Solutions, Inc. October 2010
www.windjack.com, www.pdfscripting.com
Of Adobe Systems Inc., www.adobe.com
//
NOTE: This JavaScript code is designed only for use in a
"" "" Action script (batch sequence). "" " It will not work
within a document/form field or script as a script folder level.
//
This script displays a popup menu dialog custom for each file operated by Action
The user enters information on the way in which the numbers of the documents must be applied to the
pages of a document, for example, position, content, etc.. As well as information on whether or not
the script must save the file or extract the pages labelled in a separte document
These parameters are maintained during any of the Acrobat Session.
//
A document number is included in the parameters. This number is incremented each time
a file is operated.
//
The options are included to jump the document current and for the abandonment of the sequence of actions
//
Custom dialog box created with AcroDialogs of WindJack Solutions, Inc.
//
Version 1.4-7/1/16
Amended by SCS
Label width
var nLabWidth = 2000; //
Line height
var nLabLineHeight = 8; //
If (typeof (global. (DocNumAction) == 'undefined')
{
Acrobat JavaScript dialog box
Created by DialogDesigner of WindJack Solutions
< CodeAbove >
var oDocNumTypes = {}
'Exposure': {Prefix: "[COMPANY NAME] \r\ [FEI #] \r\EXHIBIT \r\[DATE RANGE] [ACRONYM]", UseDocNum:true, UsePgNum:true, PagePrefix: "-Page" ""},
'Attachment': {Prefix: "[COMPANY NAME] \r\ [FEI #] \r\ATTACHMENT \r\[DATE RANGE] [ACRONYM]", UseDocNum:true, UsePgNum:true, PagePrefix: "-Page" ""},
"Memo": {Prefix: "[COMPANY NAME] \r\ [FEI #] \r\[INV/SUPV + MEMO DATE] \r\EXHIBIT [ACRONYM]", UseDocNum:true, UsePgNum:true, PagePrefix: "-Page" ""},
"Sample": {prefix: "[SAMPLE #] \r\[COLLECTION DATE] \r\doc #", UseDocNum:true, UsePgNum:true, PagePrefix: "-Page" ""},
};
function DoSetDocNumberFn (dialogue, oDlg)
{
var oRslt = dialog.store ();
var strExample = oRslt ["LPfx"];
If (oRslt ["so"])
strExample += oRslt ["DNum"];
If (oRslt ["PgNm"])
{
strExample += eval ("'" + oRslt ["PPfx"] + "" "") + (oDlg.nCurPage + 1) m:System.NET.SocketAddress.ToString ();
If (oRslt ["PPsf"])
strExample += 'of' + oDlg.nNumPages;
}
Dialog.Load({"ExMP":strExample});)
DoSetFileName (dialog, oDlg);
}
function DoSetFileName (dialogue, oDlg)
{
var oRslt = dialog.store ();
var strFileName As String = "";
If (oRslt ["SPst"])
{
Add the prefix
strFileName += oRslt ["SŠPR"];
Add number
If (oRslt ["DnPr"])
{
strFileName += oRslt ["DNum"];
If (oRslt ["so"])
strFileName += "_";
}
Add the file name
"strFileName += oDlg.strFileName.replace(/\.pdf/," ");"
Add number
If (oRslt ["DnFx"])
{
strFileName += oRslt ["Dnum"];
If (oRslt ["so"])
strFileName;
}
strFileName += ".pdf";
}
Dialog.Load({"SvFl":strFileName});)
}
< / CodeAbove >
overall. DocNumAction =
{
result: "Cancel."
DoDialog: function() {return app.execDialog (this);};
strHorzPos: "PosR."
nMarginX: "0.5"
strVertPos: 'PosT',
nMarginY: "0.5"
"strLTyp",:
strBackgroundCol: ['Transparent'],
"strExmp",:
strLabelPrefix: '\r ',.
bIncludeDocNum:true,
strInitDocNum: "1."
bIncludePageNum:true,
"strPageNumPrefix",:
bPageNumPostfix:true,
strBoxStateSel: "Fltn."
strPgRangeSel: "rAll,"
"strStrtPg",:
"strEndPg",:
bSaveWPostFx:true,
"strSavePrefix",:
strDocNumInName: "None."
"strSavePostfix",:
"strSvFl",:
{GetRadioSel:function(oRslts,aCtrls)}
for (var strRtn = aCtrls [0]; aCtrls.length > 0; strRtn = aCtrls.pop ()) {}
If (oRslts [strRtn] is true)
Return strRtn;
}
Return ' ';
},
SetListSel:function(list,path) {return if(path.length == 0);
eval ("list [------" "+ ((typeof path.join!]") = "function")? {("[(chemin: path.join("\"][\"")) + ' \ '] = 1")},
{GetListSel:function(oLstRslts,path)}
for {var (topic oLstRslts)
If (((typeof oLstRslts[item]=="number") & & (oLstRslts [point] > 0)))
|| This. GetListSel (oLstRslts [item], path))
{(point) path.push; return true ;}}
}
Returns false;
},
nCurPage:0,
nNumPages:1,
bHidden:true,
SetDocNumber:DoSetDocNumberFn,
SetFileName:DoSetFileName,
strFileName: "Test.pdf"
oDocNumParams:oDocNumTypes,
initialize: function (dialog)
{
var listLTyp = new Object();
This. SetListSel (listLTyp, this.strLTyp);
var listBkgd =
{
"Transparent":-1,.
'Yellow':-1.
'Green':-1.
'Blue':-1.
'Grey':-1.
};
This. SetListSel (listBkgd, this.strBackgroundCol);
var dlgInit =
{
'MrgH': this.nMarginX,
'MrgV': this.nMarginY,
'Bkgd': listBkgd,
"DNum": this.strInitDocNum.
"SPst": this.bSaveWPostFx.
'Exmp': this.strExmp,
'LPfx': this.strLabelPrefix,
"So": this.bIncludeDocNum.
"PgNm": this.bIncludePageNum.
"PPfx": this.strPageNumPrefix.
"PPsf": this.bPageNumPostfix.
"tFPg": this.strStrtPg.
"tTPg": this.strEndPg.
'SŠPR': this.strSavePrefix,
'Pressure': this.strSavePostfix,
"SvFl": this.strSvFl.
};
dlgInit [this.strHorzPos] = true;
dlgInit [this.strVertPos] = true;
dlgInit [this.strBoxStateSel] = true;
dlgInit [this.strPgRangeSel] = true;
dlgInit [this.strDocNumInName] = true;
Dialog.Load (dlgInit);
() Dialog.Enable
{
'tTPg': false,
'tFPg': false,
'PPfx': false,
'DNum': false,
}
);
var typeInit = {};
(XX in this.oDocNumParams)
typeInit [xx] = - 1;
If ((this.strStrtPg == «») | isNaN (this.strStrtPg) |) (((This.strStrtPg) Number > This.nNumPages))
{
If (this.bHidden)
this.strStrtPg = "1";
on the other
this.strStrtPg = (this.nCurPage + 1) m:System.NET.SocketAddress.ToString ();
}
If ((this.strEndPg == "") |) isNaN (this.strEndPg) | (((This.strEndPg) Number > This.nNumPages))
this.strEndPg = this.nNumPages.toString ();
exInit var = {'LTyp': typeInit, "tFPg": this.strStrtPg, "tTPg":this.strEndPg, 'sOfN': ' of ('+ this.nNumPages +') ',}
"MNLF": "current file:"+ this.strFileName;} '.
If (this.bHidden & & this.strPgRangeSel == "rCur")
{
this.strPgRangeSel = 'rAll;
exInit ['rCur'] = false;
exInit [this.strPgRangeSel] = true;
}
Dialog.Load (exInit);
exInit var = {"ExPg":this.strPgRangeSel == "rFro", "DNum":this.bIncludeDocNum, "PPfx":this.bIncludePageNum,}
"PPsf":this.bIncludePageNum, "MrgH":this.strHorzPos! = "PosC", "MrgV":this.strVertPos! = "PosM,.
""SvPs":this.bSaveWPostFx," SvDn ":this.bSaveWPostFx.
"tFPg":this.strPgRangeSel == 'rFro', ' tTPg":this.strPgRangeSel =="rFro"," rCur"{:! this.bHidden};
Dialog.Enable (exInit);
This. SetDocNumber (dialogue, this);
},
validate: function (dialog)
{
var oRslt = dialog.store ();
If (oRslt ["so"] & & ((oRslt ["DNum"] == null) |)) (oRslt ["DNum'] == ' ') | isNaN (oRslt ["DNum"])))
{
App.Alert ('If selected, the initial value for Doc number must be filled with a valid integer");
Returns false;
}
If ((/^\s*$/).test(oRslt["LPfx"]) & &! oRslt ['so'] & &! oRslt ["PgNm"])
{
App.Alert ("not enough label settings have been selected");
Returns false;
}
If (oRslt ["rFro"])
{
If ((oRslt [«tFPg»] == «») | isNaN (oRslt ["tFPg"]) |) (oRslt ["tTPg'] == ' ') | isNaN (oRslt ["tTPg"]))
{
App.Alert ("If selected, the Page range values must be entered with valid integers");
Returns false;
}
If ((oRslt ["tFPg"]) Number > Number (oRslt ["tTPg"]))
{
App.Alert ("" If selected, page number must be less than the number page "");
Returns false;
}
If ((Number (oRslt ["tFPg"]) > this.nNumPages) |) (((ORslt ["tTPg"]) Number > This.nNumPages))
{
App.Alert ("" If selected, From and the page numbers must be less than the number of pages "");
Returns false;
}
}
Returns true;
},
commit: function (dialog)
{
var oRslt = dialog.store ();
this.strHorzPos is this. GetRadioSel (oRslt, ["PosL", "PosC", "PosR"]);
this.nMarginX = oRslt ["MrgH"];
this.strVertPos is this. GetRadioSel (oRslt, ["PosT", "PosM", "PosB"]);
this.nMarginY = oRslt ["MrgV"];
path of var = new Array();
this.strLTyp = (this. "GetListSel (oRslt ["LTyp"], path))? path.reverse ():" ";" "
path of var = new Array();
this.strBackgroundCol = (this. "GetListSel (oRslt ["Bkgd"], path))? path.reverse ():" ";" "
this.strExmp = oRslt ['Exmp'];
this.strLabelPrefix = oRslt ["LPfx"];
this.bIncludeDocNum = oRslt ["so"];
this.strInitDocNum = oRslt ["DNum"];
this.bIncludePageNum = oRslt ["PgNm"];
this.strPageNumPrefix = oRslt ["PPfx"];
this.bPageNumPostfix = oRslt ["PPsf"];
this.strBoxStateSel = "Fltn.
this.strPgRangeSel is this. GetRadioSel (oRslt, ["rAll", "rCur", "rFro"]);
this.strStrtPg = oRslt ["tFPg"];
this.strEndPg = oRslt ["tTPg"];
this.bSaveWPostFx = oRslt ["SPst"];
this.strSavePrefix = oRslt ["SŠPR"];
this.strDocNumInName is this. GetRadioSel (oRslt, ["None", "DnPr", "DnFx"]);
this.strSavePostfix = oRslt ['pressure'];
this.strSvFl = oRslt ["SvFl"];
},
"Abrt": function (dialog)
{
Dialog.end ("ABRT");
},
'Skip': function (dialog)
{
Dialog.end ("Skip");
},
'Pressure': function (dialog)
{
This. SetFileName (dialog, this);
},
'DnFx': function (dialog)
{
This. SetFileName (dialog, this);
},
'DnPr': function (dialog)
{
This. SetFileName (dialog, this);
},
'None': function (dialog)
{
This. SetFileName (dialog, this);
},
'SŠPR': function (dialog)
{
This. SetFileName (dialog, this);
},
"SPst": function (dialog)
{
Good var = dialog.store (["SPst"]);
Dialog.Enable ({"Pressure": good, "SvDn": good});
This. SetFileName (dialog, this);
},
'tTPg': function (dialog)
{
var x;
},
'rFro': function (dialog)
{
Dialog.Enable ({tFPg:true, tTPg:true, "ExPg": true});
},
'rCur': function (dialog)
{
Dialog.Enable ({tFPg:false, tTPg:false, "ExPg": false});
},
"rAll": function (dialog)
{
Dialog.Enable ({tFPg:false, tTPg:false, "ExPg": false});
},
'PPsf': function (dialog)
{
This. SetDocNumber (dialog, this);
},
'PPfx': function (dialog)
{
This. SetDocNumber (dialog, this);
},
'PgNm': function (dialog)
{
Buffalo var = dialog.store (['PgNm']);
Dialog.Enable({"PPfx":bIsOn,"PPsf":bIsOn});)
This. SetDocNumber (dialog, this);
},
"DNum": function (dialog)
{
This. SetDocNumber (dialog, this);
},
"So": function (dialog)
{
Dialog.Enable({"DNum":Dialog.) Store() ["so"]});
This. SetDocNumber (dialog, this);
},
'LPfx': function (dialog)
{
This. SetDocNumber (dialog, this);
},
'LTyp': function (dialog)
{
var oRslt = dialog.store ();
path of var = [];
cSel var = ((this. GetListSel (oRslt ["LTyp"], path))? path.reverse ():"").toString();
var oLabInfo = this.oDocNumParams [cSel];
If (! oRslt ["DNum"] |) (oRslt ["DNum'] == ' ') | isNaN (oRslt ["DNum"]))
Dialog.Load({"DNum":"1"});)
If (oLabInfo)
{
Dialog.Load ({"LPfx": oLabInfo.Prefix, "So":oLabInfo.UseDocNum, "PgNm":oLabInfo.UsePgNum, "PPfx":oLabInfo.PagePrefix});})
Dialog.Enable ({"DNum": oLabInfo.UseDocNum, "PPfx":oLabInfo.UsePgNum, "PPsf":oLabInfo.UsePgNum});})
This. SetDocNumber (dialog, this);
}
},
"PosB": function (dialog)
{
Dialog.Enable({"MrgV":true});)
},
"POS": function (dialog)
{
Dialog.Enable({"MrgV":false});)
},
'PosT': function (dialog)
{
Dialog.Enable({"MrgV":true});)
},
"PosR": function (dialog)
{
Dialog.Enable({"MrgH":true});)
},
"PosC": function (dialog)
{
Dialog.Enable({"MrgH":false});)
},
'PosL': function (dialog)
{
Dialog.Enable({"MrgH":true});)
},
Description:
{
name: 'batch labeling automatic Application. "
elements:
[
{
type: "display."
elements:
[
{
type: "display."
alignment: "align_fill",.
elements:
[
{
type: "display."
height: 14.
align_children: "align_top."
elements:
[
{
type: 'static_text. "
item_id: "MNLF."
name: ' Please enter information for application document numbering labels,:
height: 14.
Police: "palette."
"BOLD": true,
},
{
type: 'static_text. "
item_id: "sta1."
name: "Version 1.4-7/1/16 SCS/CA."
height: 14.
alignment: 'align_right ',.
},
]
},
{
type: "cluster."
item_id: "cls2."
name: "ENTER the INFORMATION LABEL."
Police: "palette."
"BOLD": true,
elements:
[
{
type: "display."
align_children: "align_row."
elements:
[
{
type: 'static_text. "
item_id: "sta3."
name: "1. Select the Type of Document:»
},
{
type: "popup",
item_id: "LTyp."
nom_de_variable: "strLTyp."
Width: 93
height: 23,.
char_width: 8.
},
{
type: "gap."
item_id: "gap2."
char_width: 1,.
char_height: 4,.
},
{
type: 'static_text. "
item_id: "sta1."
name: "2 Select background,:
},
{
type: "popup",
item_id: 'Bkgd ',.
nom_de_variable: "strBackgroundCol."
Width: 86
height: 23,.
char_width: 8.
},
]
},
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'static_text. "
item_id: "sta5."
name: ' 3 Add the front label information of selected document Type,:
height: 15.
},
{
type: 'edit_text. "
item_id: "LPfx."
nom_de_variable: "strLabelPrefix."
Width: 200,
height: 75,.
Multiline: true,
char_width: 8.
},
]
},
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'static_text. "
item_id: "sta6."
name: ' 4. Enter departure Doc # (default 1): ",
},
{
type: 'edit_text. "
item_id: "DNum."
nom_de_variable: "strInitDocNum."
char_width: 3,.
},
]
},
{
type: "display."
align_children: "align_row."
elements:
[
{
type: 'check_box. "
item_id: 'So,'
name: "Include Doc # (default)."
nom_de_variable: "bIncludeDocNum."
alignment: "align_fill",.
},
{
type: 'static_text. "
item_id: "sta7."
name: "Enter prefix (or default) Page,:
},
{
type: 'edit_text. "
item_id: "PPfx."
nom_de_variable: "strPageNumPrefix."
char_width: 8.
},
{
type: 'check_box. "
item_id: "PgNm."
name: "Include Page # (default)."
nom_de_variable: "bIncludePageNum."
alignment: "align_fill",.
},
{
type: 'check_box. "
item_id: "PPsf."
name: ' include \"of N\ 'pages ', '.
nom_de_variable: "bPageNumPostfix."
alignment: "align_fill",.
},
]
},
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'static_text. "
item_id: "sta8."
name: "overview of the label,:
Police: "palette."
},
{
type: 'edit_text. "
item_id: 'Exmp ';
Width: 250,
height: 75,.
char_width: 8.
Multiline: 'true ',.
ReadOnly: "true."
},
]
},
]
},
{
type: "cluster."
item_id: "cls3."
name: "SELECT the PAGE RANGE."
Police: "palette."
"BOLD": true,
elements:
[
{
type: "display."
align_children: "align_row."
elements:
[
{
type: 'radio ',.
item_id: "rAll,"
group_id: "GRP1"
name: "All."
nom_de_variable: "strPgRangeSel."
height: 20.
},
{
type: 'radio ',.
item_id: "direct."
group_id: "GRP1"
name: "current (applies only to the Open Document)."
nom_de_variable: "strRange."
height: 20.
},
{
type: 'radio ',.
item_id: "rFro."
group_id: "GRP1"
name: "to:",
Width: 12,
height: 24,.
},
{
type: 'edit_text. "
item_id: "tFPg."
nom_de_variable: "strStrtPg."
height: 24,.
char_width: 6,.
},
{
type: 'static_text. "
item_id: "sta1."
name: "to:",
height: 24,.
},
{
type: 'edit_text. "
item_id: "tTPg."
nom_de_variable: "strEndPg."
height: 24,.
char_width: 6,.
},
{
type: 'static_text. "
item_id: "sOfN."
name: "of (N)."
height: 24,.
},
]
},
]
},
]
},
{
type: "cluster."
item_id: "cls1."
name: POSITION "SELECT."
Width: 188
height: 80,.
Police: "palette."
"BOLD": true,
char_width: 8.
char_height: 8.
elements:
[
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'radio ',.
item_id: "PosL."
group_id: "PosH,"
name: "Left",
nom_de_variable: "strHorzPos."
},
{
type: 'radio ',.
item_id: "PosC".
group_id: "PosH,"
name: 'Center ',.
},
{
type: 'radio ',.
item_id: "PosR."
group_id: "PosH,"
name: "right."
},
{
type: 'static_text. "
item_id: "sta2."
name: "margin (inches)": ","
},
{
type: 'edit_text. "
item_id: "MrgH."
nom_de_variable: "nMarginX."
char_width: 8.
},
]
},
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'radio ',.
item_id: 'PosT',
group_id: 'VPOS ',.
name: 'Top',
nom_de_variable: "strVertPos."
},
{
type: 'radio ',.
item_id: "POS."
group_id: 'VPOS ',.
name: "Middle",
},
{
type: 'radio ',.
item_id: "PosB"
group_id: 'VPOS ',.
name: "bottom."
},
{
type: 'static_text. "
item_id: "sta1."
name: "room (inches):»
},
{
type: 'edit_text. "
item_id: "MrgV."
nom_de_variable: "nMarginY."
char_width: 8.
},
]
},
]
},
{
type: "cluster."
item_id: "cls1."
name: 'SAVE OPTIONS ',.
Police: "palette."
"BOLD": true,
alignment: "align_fill",.
elements:
[
{
type: "display."
align_children: "align_top."
elements:
[
{
type: 'check_box. "
item_id: "SPst"
name: "save file."
nom_de_variable: "bSaveWPostFx."
},
{
type: 'static_text. "
item_id: "sta9."
name: "Enter Doc Type of recorded file name (optional):"
},
{
type: 'edit_text. "
item_id: "SŠPR."
nom_de_variable: "strSavePrefix."
Width: 73
height: 23,.
char_width: 8.
alignment: "align_fill",.
},
{
type: 'static_text. "
item_id: "sta3."
name: "Include Doc # in the name of the saved file (optional):"
},
{
type: 'radio ',.
item_id: "None."
group_id: "SvDN."
name: 'no ', he said.
nom_de_variable: "strDocNumInName."
},
{
type: 'radio ',.
item_id: "DnPr."
group_id: "SvDN."
name: '' Yes. ''
},
]
},
{
type: "display."
align_children: "align_top."
alignment: "align_top."
elements:
[
{
type: "ok."
ok_name: 'Apply Label and save',
},
{
type: 'button ',.
item_id: 'Skip,'
name: 'Skip this Doc. "
},
{
type: 'button ',.
item_id: "Abrt"
name: "Cancel."
},
{
type: 'static_text. "
item_id: "sta1."
name: "" file name: ","
alignment: 'align_right ',.
},
{
type: 'edit_text. "
item_id: "SvFl."
Width: 295
height: 23,.
char_width: 8.
ReadOnly: "true."
},
]
},
]
},
]
},
]
}
};
overall. DoPlaceDocNumbers = app.trustedFunction (function (oOrigDoc)
{
app.beginPriv ();
Setup from the parameters
var oTrgDoc = oOrigDoc;
var nPgStart, nPgEnd, nPgTrgStart;
var cBkCol = ["t."];
switch (global. DocNumAction.strBackgroundCol.toString ())
{
case 'Transparent ':
cBkCol = ['t.'];
break;
case "yellow":
cBkCol = ['RGB', 1, 1, 0];
break;
case "green":
cBkCol = ['RGB', 0.1, 0];
break;
case "Blue":
cBkCol = ["RGB", 0,0, 1];
break;
case "gray":
cBkCol = ['RGB',.7,.7,.7];
break;
case "white":
cBkCol = ['RGB', 1, 1, 1];
break;
}
switch (global. DocNumAction.strPgRangeSel)
{
case 'rAll:
nPgTrgStart is nPgStart = 0;.
nPgEnd = oOrigDoc.numPages-1;
break;
case 'rCur ':
nPgTrgStart = nPgEnd = nPgStart = oOrigDoc.hidden? 0:oOrigDoc.pageNum;
break;
case 'rFro ':
nPgTrgStart = nPgStart = number (global. DocNumAction.strStrtPg)-1;
If (nPgTrgStart > (oOrigDoc.numPages-1))
nPgTrgStart = oOrigDoc.numPages-1;
nPgEnd = number (global. DocNumAction.strEndPg)-1;
If (nPgEnd > (oOrigDoc.numPages-1))
nPgEnd = oOrigDoc.numPages-1;
break;
}
Start marking loop
var nNumPages is nPgEnd - nPgStart + 1;.
var nCurPgNum = nPgStart;
for (nPg var = 0; nPg < nNumPages; nPg ++ nCurPgNum ++, nPgTrgStart ++)
{
Create a text label
var global = strExample. DocNumAction.strLabelPrefix;
If (Global. DocNumAction.bIncludeDocNum)
strExample += overall. DocNumAction.nCurrentDocNum;
If (Global. DocNumAction.bIncludePageNum)
{
strExample += eval ("'" + global.) DocNumAction.strPageNumPrefix + "" "") + (nCurPgNum + 1) m:System.NET.SocketAddress.ToString ();
If (Global. DocNumAction.bPageNumPostfix)
strExample += 'of' + oOrigDoc.numPages;
}
Find the location on the Page
Download the base params
var rcPage = oOrigDoc.getPageBox ("Crop", nCurPgNum);
var mxToDefaultCoords = (new Matrix2D()) .fromRotated (oOrigDoc, nCurPgNum);
var nPgRot = oOrigDoc.getPageRotation (nCurPgNum);
var rcRot = [];
var nAlign;
var nMargX = number (global. DocNumAction.nMarginX) * 72;
switch (global. DocNumAction.strHorzPos)
{
case "PosL:
strAlign = 'left '; Left-aligned text
rcRot [0] = nMargX;
rcRot [2] = nMargX + nLabWidth;
break;
case "PosC":
strAlign = 'center '; Left-aligned text
rcRot [0] = rcPage [2] / 2 - nLabWidth/2;
rcRot [2] = rcPage [2] / 2 + nLabWidth/2;
break;
case "PosR":
strAlign = 'right '; Left-aligned text
rcRot [0] = rcPage [2] - nMargX - nLabWidth;
rcRot [2] = rcPage [2] - nMargX;
break;
}
Find the number of lines
var nMargY = number (global. DocNumAction.nMarginY) * 72;
var nLigne = 1;
var oMtch = strExample.match(/(\n)/g);
If (oMtch)
nLigne += oMtch.length;
var bxHght = nLigne * (nLabLineHeight + 1);
switch (global. DocNumAction.strVertPos)
{
case 'PosT ':
rcRot [1] = rcPage [1] - nMargY - bxHght;
rcRot [3] = rcPage [1] - nMargY;
break;
case "POS":
rcRot [1] = (rcPage [1] - bxHght) / 2;
rcRot [3] = (rcPage [1] + bxHght) / 2;
break;
case "PosB":
rcRot [1] = nMargY;
rcRot [3] = nMargY + bxHght;
break;
}
var rectAnnot = mxToDefaultCoords.transform (rcRot);
Find an existing annot and remove if there is
annot var = oTrgDoc.getAnnot (nPgTrgStart, "DocNumberLabel");
If (Annot)
Annot.Destroy ();
Create annotation
strExample = strExample.replace(/\r\n/g,"\r");
oTrgDoc.addAnnot ({type: "FreeText", page: nPgTrgStart, rect:rectAnnot,})
Rotate: nPgRot, width: 0, fillColor:cBkCol,
readOnly: overall. DocNumAction.strBoxStateSel == "Lckd."
richContents: [{textColor: ["RGB", 0,0, 0], textSize:nLabLineHeight,}]
[{alignment: strAlign, text: strExample}].
name: "DocNumberLabel."
});
}
If selected then flatten
If (Global. DocNumAction.strBoxStateSel is "Fltn")
oTrgDoc.flattenPages ();
Save file
If (Global. DocNumAction.bSaveWPostFx)
{
var cSavePath = oOrigDoc.path.replace(/\/[^\/]+$/,"/"); "
var cDocPrefix;
cDocPrefix = global. DocNumAction.strLabelPrefix;
Document prefix number
cSavePath += overall. DocNumAction.strSavePrefix;
If (Global. DocNumAction.strDocNumInName is "DnPr")
{
If (Global. DocNumAction.bIncludeDocNum)
cSavePath += overall. DocNumAction.nCurrentDocNum += "_";
}
"cSavePath += oOrigDoc.documentFileName.replace(/\.pdf/," ");"
Number of document as prostfix
If (Global. DocNumAction.strDocNumInName is 'DnFx')
{
If (Global. DocNumAction.bIncludeDocNum)
cSavePath += overall. DocNumAction.nCurrentDocNum;
}
cSavePath += ".pdf";
oTrgDoc.saveAs (cSavePath);
}
app.endPriv ();
});
}
var DoNumActionDlg = app.trustedFunction (function)
{
app.beginPriv ();
return app.execDialog (global. DocNumAction);
app.endPriv ();
});
Setup
var oDoc = event.target;
If (odoc.xfa)
{
If (3 == app.alert (oDoc.documentFileName + ": is a form of LiveCycle, which may not be labeled\n\n you want to continue processing the files?")) (Pressing No. will stop the processing of the file) ", 1, 2))
Event.RC = false;
}
on the other
{
overall. DocNumAction.bHidden = oDoc.hidden;
if(!odoc.) Hidden)
overall. DocNumAction.nCurPage = oDoc.pageNum;
on the other
overall. DocNumAction.nCurPage = 0;
overall. DocNumAction.nNumPages = oDoc.numPages;
overall. DocNumAction.strFileName = oDoc.documentFileName;
cRtn var = DoNumActionDlg();
If ("ok" is cRtn)
{
Configure the Initial of Doc number
If (Global. DocNumAction.bIncludePageNum)
overall. DocNumAction.nCurrentDocNum = number (global. DocNumAction.strInitDocNum);
Console.println ("Do" + oDoc.documentFileName);
overall. DoPlaceDocNumbers (oDoc);
Increment if applicable Doc number
If (Global. DocNumAction.bIncludeDocNum)
{
overall. DocNumAction.nCurrentDocNum ++;
overall. DocNumAction.strInitDocNum = global. DocNumAction.nCurrentDocNum.toString ();
}
}
ElseIf ("Abrt" == cRtn)
Event.RC = false;
}
I suppose it comes from the exchange of shares on AcrobatUsers.com. Are you the error with the unmodified script as well? If this isn't the case, what you changed in the code (and for what purpose)?
Your subject line refers to an error of NaN - how - what is factor in this problem?
A 'NaN' error is thrown when occurs a condition 'Not a number', which may for example be that you are trying to perform an operation which cannot be done with a number on a chain, or if you try to divide by zero.
-
Management of the custom event sent by loading SWF fails
I loaded and SWF using SWFLoader. Not a component, but just a regular Flash AS3 SWF. I can access its properties and functions but when I listen to a custom, event distributes, I get the error:
Error #1034: Type coercion failed: cannot convert com.subhumanmedia.classes::SoundCueEvent@911ad61 to com.subhumanmedia.classes.SoundCueEvent.
Here's the event:
package com.subhumanmedia.classes
{
import flash.events.Event;
SerializableAttribute public class SoundCueEvent extends Event
{
public static const = "cueSound" CUE_SOUND:String
private var soundCueObjectInstance:Object;
public void SoundCueEvent (type: String, bubbles: Boolean, cancelable: Boolean, soundCueObject:Object)
{
parameter soundCueObject:
soundCueObject.cueSoundURL is the string with the name of file to play
soundCueObject.cueSoundStartTime is the number giving the millisecond offset to read from
//
Super (type, bubbles, cancelable);
soundCueObjectInstance = soundCueObject;
}
public function get soundCueObject (): Object
{
Return soundCueObjectInstance;
}
override public function clone (): event
{
return new SoundCueEvent (type, bubbles, cancelable, soundCueObjectInstance);
}
}
}Here is the statement in the loaded SWF, the event:
dispatchEvent (new SoundCueEvent (SoundCueEvent.CUE_SOUND, true, false, soundCues [cueCounter]));
soundCues is an attay soundCueObjects.Here is the definition of the listener in my main class:
slide.slideGraphic.swfObject.content.addEventListener (SoundCueEvent.CUE_SOUND, cueSoundHandler);And here's the Manager:
private void cueSoundHandler(e:SoundCueEvent):void
{
trace (e);
}If I change the type of parameter of the event Manager, it does not take a mistake, but I can't yet ride a SoundCueEvent event in order to obtain tracking information.
Now both the right loaded SWF and main class get the definition of the event from a compiled SWC, but I tried several other ways to do it without any better result.
I don't know even what causes the error and am totally baffled by how to solve it. Can anyone help?
It is equivalent to the problem of shared code described in the presentation of the modules on my blog.
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
Satellite L350-214 - error with the software Reeltime
Hello
I have a Satellite L350-214 with Windows 7 Pro and have encountered an error with the software Reeltime, I uninstalled and reinstalled and still get the error below. Any help or assistance would be great
Tony Miller
Log name: Application
Source: Windows Error Reporting
Date: 2010-11-30 12:27:58
Event ID: 1001
Task category: no
Level: Information
Keywords: Classic
User: n/a
Computer: Tony-TOSH
Description:
Fault bucket 1223018385, type 5
Event name: CLR20r3
Answer: No available
Cabin ID: 0
Signature of the problem:
P1: tosreeltime.exe
P2: 1.0.0.0
P3: 4a769d0e
P4: WindowsBase
P5: 3.0.0.0
P6: 4b5950b7
P7: a86
P8: 18
P9: System.InvalidOperationException
P10:
Attached files:
C:\Users\Tony\AppData\Local\Temp\WER7C9E.tmp.WERIn ternalMetadata.xml
These files are available here:
C:\Users\Tony\AppData\Local\Microsoft\Windows\WER\ ReportArchive\AppCrash_tosreeltime.exe_25c5a6496c7 ad44943ce88637e3389e8a80bd45_07f0c745
Symbol of the analysis:
Recheck for solution: 0
Report ID: d5b71327-fc74-11df-a596-00266c333aed
State: 0
The event XML:
1001
4
0
0 x 80000000000000
37886
Application
Tony-TOSH
1223018385
5
CLR20r3
Not available
0
tosreeltime.exe
1.0.0.0
4a769d0e
WindowsBase
3.0.0.0
4b5950b7
A86
18
System.InvalidOperationException
C:\Users\Tony\AppData\Local\Temp\WER7C9E.tmp.WERIn ternalMetadata.xml
C:\Users\Tony\AppData\Local\Microsoft\Window s\WER\ReportArchive\AppCrash_tosreeltime.exe_25c5a 6496c7ad44943ce88637e3389e8a80bd45_07f0c745
0
d5b71327-fc74-11df-A596-00266c333aed
0
My system specsHey,.
If you get this error Reeltime, you should try Ccleaner. There may be a registry problem and CCleaner might solve this problem. This great freeware and easy tool which you can download here:
http://www.Piriform.com/Check this box!
-
Hello
I am facing a problem with the events. Please Ref. Event.zip the attachment.AEv.vi is a LV2G used for the reading/Generate/Init/destroy the event. Test2.VI is a main vi (we must run this vi)
The AEv.vi Init action must be done in the other vi (other than the Test2.vi:- but for the objective test I've initialized in Test2.vi only).
Test2.VI is used for genetate event.
I could have called statically AEv.vi inside the Test2.vi to generate an event... but the path that comes is decided when running... (I have many live similar to AEv.vi...) .. who decided at run time...)
The problem:
When I run Test2.vi, it gives me the error code 1 (try running test2.VI... it gives the dialogue on the occurrence of the error)...
Can someone fix this?
Thank you!
I modified your screws to do what I think you want. The way you did the user events will not work. I added a line to send orders to Ev.vi
Maybe you are looking for
-
If the subject was not clear, here's the long version. I literally just used my iphone to type a new password and I've already forgotten the password and it has not been saved. What I want to know is if there is a way to see my Iphones typing history
-
My computer no sound:(aider?)
I really need help. My computer has no sound. The Player Windows media, youtube, there just does not seem to be any sound. (my volume is not muted) I also checked that my audio driver is installed and put to update but still no sound thanks in advanc
-
BlackBerry smartphone Blackberry Bold 9900
I have a few signs of yellow color on the keys for the letters W E R S and D on my Bold 9900. Anyone know what this means please. Thank you.
-
Windows 7 constantly asking me to activate Windows
After a few months, I would get a message asking me to activate my Windows. I have to call a number and enter a long group of digits (9 groups of 6 digits to be exact). I pass the test of activation every time, and yet I would still get this message
-
SQL query help needed in the Clause type
HelloI'm currently learning Clause type. How can I write in the clause type to get the result below:I have a table like thisDEPTNO ENAME------- ------20 SMITHCELINE 10BOND 20ALLEN 30WARD 3020 JONES30 MARTIN30 BLAKE10 CLARKSCOTT 2010 KING30