|
|||
|
Hello,
I'm using an embbeded activeX control for pdf viewing and digitally signing the pdf's. Unfortunately, the application crashes when using them. I cannot create one single control on the Initialize script and use it across the other scripts or the application will crash. Can you tell what are the best practices for using activeX controls with swfkit. Does a problem with a control make the player crash? I'm using var smartcard = createControl("SiSmart2XControl1.SiSmart2X",0,0,0, 0) // some smartcard params here var fileName = FlashPlayer.getVariable("_root.fileToVerify_str"); var temp_outFileName="c:\\temp\\alert_pkcs_extract.pdf "; var bool = smartcard.activex.VerificaFileP (fileName, temp_outFileName); FlashPlayer.setVariable("_root.fileVerified_str", bool+"" ); var f = new File(temp_outFileName) bool = ""+f.remove() var f1= new File(outFileName) f1.remove(); delete smartcard; smartcard=null; I have several of these scripts creating and deleting the same control. Thank you. |
|
|||
|
It's not available for download, at least I don't think it is. It's a smartcard reader so it's pretty useless without the hardware.
I've been doing some more tests and the crash now happens invariably when I close the application. Sometimes the error c++ assertion failed appears. Microsoft Visual C++ Debug Library Debug Assertion Failed Program: ...Data\Local\Temp\{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\pp.exe File: cmdTarg.cpp Line 48 This happens if both of the following happen: I use the smartcard reader. I close the application. It doesn't need to be at the same time, I can use the smartcard reader and close the application 30 sec after and it will crash. I call the control several times without any problem, creating the control and then deleting it (delete smartcard; smartcard=null) I know it's hard without the control but maybe you have a suggestion? this is the smartcard provider http://www.solinfo.it/ I didn't find anything, but I'm not italian either :P Thank you |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|