--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication...@googlegroups.com.
To post to this group, send email to serial-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/f8aa3a35-d2d2-4637-9bb6-92ca06d9d336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/CALUj-gsJwhgGMcNoV9dow_0WSfEG7OC0sMm-eBwY-TeU_bhuNw%40mail.gmail.com.
AndreasRegards,What do you think?Currently I have to create the directory that is passed to the constructor.Hi Rishi,I think it would be a good option to let the user just specify an application name (a string) and the directory path and loadedLibName is calculated by the application name and the directory is created automatically.
2016-02-18 12:47 GMT+01:00 rishi gupta <>:
There are 2 constructors; SerialComManager() and SerialComManager(String directoryPath, String loadedLibName). First constructor will extract windows_1.0.4_x86_64.dll file in temp folder. Now because you are running two separate process, 2nd process will throw this exception because 1st is already using this file.Use this constructor SerialComManager(String directoryPath, String loadedLibName) to provide separate location/file names to be used. Think it this way. Assume you package SCM in your jar and another vendor also packaged SCM in his jar. Now both will use temp folder and 2nd vendor will fail. To address such scenario, this 2nd constructor is used.Read javadocs for details.
On Thu, Feb 18, 2016 at 4:58 PM, Pratap Tripathy <> wrote:
I have written a program that allow you to select a port and read/writes to it. First time I start the program it works fine. If I start the 2nd process to communicate with another port I get error:
Caused by: java.io.FileNotFoundException: C:\Users\ADMINI~1\AppData\Local\Temp\scm_tuartx1\windows_1.0.4_x86_64.dll (The process cannot access the file because it is being used by another process)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
at com.embeddedunveiled.serial.internal.SerialComPortJNIBridge.loadNativeLibrary(SerialComPortJNIBridge.java:295)
--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication-manager+unsub...@googlegroups.com.
To post to this group, send email to serial-communication-manager@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/f8aa3a35-d2d2-4637-9bb6-92ca06d9d336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication-manager+unsub...@googlegroups.com.
To post to this group, send email to serial-communication-manager@googlegroups.com.
Few things we need to discuss.- How we will decide directory path on user system (unix and non-unix).
- How we are going to deal with security (restrictions that might have been imposed by JVM, antivirus, operating system, admin policy etc).
- What if by chance on user system 2 applications have same name.
- What if 2 independent 3rd party application which packaged scm.jar into their jar try to use same folder.
On Sunday, March 13, 2016 at 6:58:35 PM UTC+5:30, Andreas Kuhtz wrote:
AndreasRegards,What do you think?Currently I have to create the directory that is passed to the constructor.Hi Rishi,I think it would be a good option to let the user just specify an application name (a string) and the directory path and loadedLibName is calculated by the application name and the directory is created automatically.
2016-02-18 12:47 GMT+01:00 rishi gupta <>:
There are 2 constructors; SerialComManager() and SerialComManager(String directoryPath, String loadedLibName). First constructor will extract windows_1.0.4_x86_64.dll file in temp folder. Now because you are running two separate process, 2nd process will throw this exception because 1st is already using this file.Use this constructor SerialComManager(String directoryPath, String loadedLibName) to provide separate location/file names to be used. Think it this way. Assume you package SCM in your jar and another vendor also packaged SCM in his jar. Now both will use temp folder and 2nd vendor will fail. To address such scenario, this 2nd constructor is used.Read javadocs for details.
On Thu, Feb 18, 2016 at 4:58 PM, Pratap Tripathy <> wrote:
I have written a program that allow you to select a port and read/writes to it. First time I start the program it works fine. If I start the 2nd process to communicate with another port I get error:
Caused by: java.io.FileNotFoundException: C:\Users\ADMINI~1\AppData\Local\Temp\scm_tuartx1\windows_1.0.4_x86_64.dll (The process cannot access the file because it is being used by another process)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
at java.io.FileOutputStream.<init>(FileOutputStream.java:156)
at com.embeddedunveiled.serial.internal.SerialComPortJNIBridge.loadNativeLibrary(SerialComPortJNIBridge.java:295)
--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication...@googlegroups.com.
To post to this group, send email to serial-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/f8aa3a35-d2d2-4637-9bb6-92ca06d9d336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication...@googlegroups.com.
To post to this group, send email to serial-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/CALUj-gsJwhgGMcNoV9dow_0WSfEG7OC0sMm-eBwY-TeU_bhuNw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "serial communication manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serial-communication...@googlegroups.com.
To post to this group, send email to serial-communi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/serial-communication-manager/8ac859cf-0372-4279-8e2a-3c70c99c02ef%40googlegroups.com.
--------------------------------- ----------------------------------| module A (priviledged) | ~~~~~~~~~~~ |module B (uses scm.jar)|--------------------------------- ---------------------------------In networked applications or security sensitive applications, typically, applications will have different level of abstractions and privileged modules. How are we going to handle scenario where the module with scm.jar does not have permissions for disc access.May be in 2-arg c'tor we add boolean createDirectory argument. If it is true SCM will create directory otherwise it is left to the application.