Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
jimvaughan
About
- Username
- jimvaughan
- Joined
- Visits
- 353
- Last Active
- Roles
- Member
Comments
-
Using Post_Event did not work, the same error occurs. Thanks for the suggestion. I guess we wait to see what Carl comes up with. I think I can code around this by saving both the source code and the compiled code, that would remove the need to co…
-
It's not closing the dialog. The crash is due to calling Repository('COMPILE' in the code. If the code called from the OLE event has a call to Repository('COMPILE' it will crash, the same code called from a menu event does not crash.
-
The dialog does get closed by the dialog, it calls End_Dialog. Is this crash new under OI10, I have not seen it on 9.4.
-
Tomorrow I am going to try simplifying the code that is called.
-
Well, it does all kind of stuff but only fails when called from an OLE event. And it fails badly, a complete crash, now that I have removed the call to a subroutine. The code opens a dialog, lets the user makes a few choices, the user presses OK b…
-
I removed the send event logic entirely. If both events have the same exact code (they now call a subroutine called Click_Open. The menu works, OLE event as I say above crashes hard, no error, nothing just exits from memory.
-
No. I placed at the very front of ToolBar_OLE_Event the same code as in the menu event followed by a return. So the only code executing in ToolBar_OLE_Event is the same code as in the menu event. I just tried this: Removed call to ToolBar_OLE_Ev…
-
Just posted this on the Rev forum USing SRPs OLE Button control. If I call a piece of code from a menu event on a form, it works. If call exact same code from OLE button control on the same form, OI gives an error as it returns from the code int…
-
To confirm: Code called from menu event works. Same exact call from OLE event fails on return
-
This is really strange. The OLE button event code does nothing except this (it actually does way more, but in this situation that is all it does, one subroutine handles all the OLE buttons). Call Send_Event("MAIN_TACTIC.MENU.FILE.OPEN","MENU") If I…
-
If I place an return at the front of the subroutine being called the error goes away. If I place a debug at the front of the subroutine being called then step through the subroutine, It all seems to work but at the end of the code as the subroutin…
-
OK, strange. So you are saying the error is in the subroutine being called, but the debugger is reporting the error in the event.
-
Just tried again, this time the error is ENG0015: $$$$W_TACTIC*OLE*MAIN_TACTIC,BUTTTON2, line 76 illegal op code 73.
-
OI10. If I comment out the call to the subroutine, the error goes away (but the code I need to run obviously does not execute). If I add the call back in I get the same error or similar, the exact message seems to vary, this time I got ENG0015: $…
-
Is this an issue with your OLE control, or do I need to re-ask this question on the Revelation forums?
-
Ret_Val = Send_Message(OleCtrlEntId, "QUALIFY_EVENT", "OnClick", 1)
-
Thanks to both of you, I have it working.
-
Thanks Kevin.
-
Ok, I got that working. however I also want to adjust the font for the header, I used OLE.HeaderFont[ALL;ALL]. This works but again the height is not adjusted, do we have a property for header height?
-
On the OI edittables we use we allow the user to set the font, I want to allow users to do the same thing on the SRP edittables we use.
-
Ha, OK let me play with this, we have a user that needs a bigger font.
-
Maybe, I assume the Autosized value would do the trick. If not I would somehow need to calculate the height of the font.
-
Kevin, Thank you, that fixed it.
-
I am certain it got updated, I am using the copy in c:\oi32, the other locations are just copies (backups) of oi32 Name Size Type Modified Attr Location SRPUTILITIES.DLL 1.54 MB App…
-
BTW I got the file to download, it was an issue with my internet connection.
-
I copied the DLL to my OI folder. Ran an RDKINSTALL from sysprog. Rebooted and still see the same error. In my OI install folder I have SRPUTILITY.DLL and SRPUTILITIES.DLL, could this be the source of the issue?
-
Nevermind I got it, my internet was being flaky.
-
I cannot get that file to download.
-
Tried changing COMP to COMPARE, the same result.
-
Both calls to SRP_MATH are returning null.