Comments (7)
官方的c++ sdk就是这样子的,内部估计是有个静态变量,只能用一次
from pywpsrpc.
官方的c++ sdk就是这样子的,内部估计是有个静态变量,只能用一次
即使有静态变量,强杀进程后,也不存在了。
再次调用接口createEtRpcInstance、getEtApplication返回是新对象才对,返回老的理解不了。
除非强杀进程时,少杀进程了。
from pywpsrpc.
官方的c++ sdk就是这样子的,内部估计是有个静态变量,只能用一次
即使有静态变量,强杀进程后,也不存在了。
再次调用接口createEtRpcInstance、getEtApplication返回是新对象才对,返回老的理解不了。
除非强杀进程时,少杀进程了。
变量是在sdk模块的吧,这个不是wps进程加载的(python这边)
不过可以研究研究这个模块能不能卸载重新加载,估计不太好整,现在都是sip那边自动做的
from pywpsrpc.
代码示例: hr, rpc_excel = createEtRpcInstance() hr, app_excel = rpc_excel.getEtApplication() # 强杀excel进程 processName = "et" kill_process(processName) hr, rpc_excel1 = createEtRpcInstance() hr, app_excel2 = rpc_excel1.getEtApplication() # 返回的rpc_excel1、app_excel2还是老对象,下面这行代码必崩!!!!!!! app_excel2.Visible = False 我猜测哪个地方有缓存 问题二: createEtRpcInstance getEtApplication源码在哪里能看到 【环境】 pywpsrpc:v2.3.9 信创amd64 wps:v11.1.0.11704
kill进程之后,需要把你的rpc_excel、app_excel对象回收后再去新建才行的
from pywpsrpc.
代码示例: hr, rpc_excel = createEtRpcInstance() hr, app_excel = rpc_excel.getEtApplication() # 强杀excel进程 processName = "et" kill_process(processName) hr, rpc_excel1 = createEtRpcInstance() hr, app_excel2 = rpc_excel1.getEtApplication() # 返回的rpc_excel1、app_excel2还是老对象,下面这行代码必崩!!!!!!! app_excel2.Visible = False 我猜测哪个地方有缓存 问题二: createEtRpcInstance getEtApplication源码在哪里能看到 【环境】 pywpsrpc:v2.3.9 信创amd64 wps:v11.1.0.11704
kill进程之后,需要把你的rpc_excel、app_excel对象回收后再去新建才行的
试了下,是可以的
from pywpsrpc.
我之前也遇到过类似问题,del app_excel 后就行了
from pywpsrpc.
代码示例: hr, rpc_excel = createEtRpcInstance() hr, app_excel = rpc_excel.getEtApplication() # 强杀excel进程 processName = "et" kill_process(processName) hr, rpc_excel1 = createEtRpcInstance() hr, app_excel2 = rpc_excel1.getEtApplication() # 返回的rpc_excel1、app_excel2还是老对象,下面这行代码必崩!!!!!!! app_excel2.Visible = False 我猜测哪个地方有缓存 问题二: createEtRpcInstance getEtApplication源码在哪里能看到 【环境】 pywpsrpc:v2.3.9 信创amd64 wps:v11.1.0.11704
kill进程之后,需要把你的rpc_excel、app_excel对象回收后再去新建才行的
试了下,是可以的
请问一下是用什么方式进行的回收,del吗?
from pywpsrpc.
Related Issues (20)
- 设置excel行列隐藏报错,Shape对象获取错误 HOT 3
- hr, doc = docs.Open(file, ReadOnly=True)返回-2147483640
- 提供arm64的whl HOT 4
- 获取透视表集合错误 HOT 1
- 透视表:PivotFields返回值有问题 HOT 1
- 透视表:PivotItems()返回值错误
- 【编译】运行时依赖的Qt版本只能Qt5.12, 是哪里有限制么? 可以手动依赖Qt5.11编译么 HOT 2
- 支持QT5.14的环境吗,我把libQt5Core换成了5.14的版本 导入的时候就会报错找不到QT5.12 HOT 1
- pip/pip3 install都失败了? HOT 2
- word中公式对象OMath的方法异常 HOT 4
- ubuntu22.04-arm失败 HOT 2
- python3.9 无法正常安装库 HOT 3
- 关于etapi,如何遍历一个workbook中的所有sheet HOT 1
- rpc多进程运行报错 HOT 3
- xls,xlsx 转pdf问题 HOT 3
- 可以提供python3.12 的wheel吗? HOT 1
- HelloStar 计划
- centos7系统 下载了wps10版本 提示没有api.so文件 又下载了11版本 HOT 1
- ImportError: librpcwpsapi_sysqt5.so: cannot open shared object file: No such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywpsrpc.