Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
OLE.CellImage slow on Windows 10
If you have a grid and then make a call to:
where StringValue is a path to an image, and field and record are whatever, the set property is really slow...it can take up to 10 seconds to complete.
Points:
Set_Property(OLECtrlEntID, "OLE.CellImage[field; record]", StringValue)
where StringValue is a path to an image, and field and record are whatever, the set property is really slow...it can take up to 10 seconds to complete.
Points:
- Happens on windows 10 but not windows 7.
- Only happens the first time you call it, subsequent calls (for different rows) are fast.
Comments
Thanks
thanks
Both the .ocx file and the image are not on the user's computer.
Curious? Always.
At first i thought it was because we were using an outdated version of your controls, but we upgraded for some users, and they still get the crash.
Maybe it's because we not using the latest version of OI....
Faulting module name: SRPControls.ocx, version: 3.1.0.0, time stamp: 0x51c9cd97
Exception code: 0xc0000005
Fault offset: 0x0046d88c
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
Faulting package full name: %14
Faulting package-relative application ID: %15
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: OINSIGHT.exe
P2: 9.4.4.0
P3: 5c067fe2
P4: SRPControls.ocx
P5: 3.1.0.0
P6: 51c9cd97
P7: c0000005
P8: 0046d88c
P9:
However, there have been some older versions of the SRPControls.ocx which cause crashes for various internal reasons. We've fixed all of the ones reported to us that were reproducible. Please let us know if you continue to experience crashes after you have upgraded and after you have registered the control locally. We will definitely want to fix anything that we can isolate as a problem within the control itself.
I think you'r re right. I've been thinking the same thing.
Every since I upgrade to the latest OCX, we haven't seen the above error message anymore. But we are still seeing an error message, which looks like this:
Anyway, i think that OI also sometimes crashes when the users open the ole ie control. Perhaps that is also on the network rather than the user's computer. I need to find it in the registry:
shell.explorer.2
It's weird that upon losing connection to the shared drive, OI doesn't crash. It seems to only crash under the following scenario:
1. Open OI.
2. Open a form.
3. Lose connection to where OI is located.
4. The form opened in step 2 is removed from the cache. Not sure on the specifics about this, but OI seems to cache forms (i.e., they are still usable after losing connection to the network share if they were opened before the loss of connection). Of course, if the form does data access, this won't work, but anything not involving data access works.
5. Try to open the form opened in step 2. OI crashes.
Also, not sure if it's any form or only forms that have the internet explorer embedded active x control. Users mostly complained about the form with the IE active x control, but I think it crashed for me once for a different form.
But I still need to check why the set_property for adding an image to a cell is slow.