Registering OCX on Navision 2.60E

johjoh5
Member Posts: 6
Can anyone help me? I am registering a Tposx100.dll on a Navision 2.60E client Windows XP Pro. Eveything runs smoothly - the form/codeunit runs ok - if I do not close the client.
However if I close and open again the client - I can not run my form anymore - the client freezes. But the form/codeunit compiles and the variable looks fine. I have several others setups like this one on Windows 2000. I am using the same .dll file as the other stations - just copied it over and have registered it locally and centrally. Can anyone help me.....
However if I close and open again the client - I can not run my form anymore - the client freezes. But the form/codeunit compiles and the variable looks fine. I have several others setups like this one on Windows 2000. I am using the same .dll file as the other stations - just copied it over and have registered it locally and centrally. Can anyone help me.....

0
Comments
-
It seems like some problems (conflict) with other applications or dlls... what is it Tposx100.dll? I do not know such a library...0
-
The system is Navision POS and is communicatino with a Credit card POS. What puzzles me is the fact that is works fine - as long as I keep the client running after I registered it in Custom Controls. I even change the licence file back to the clients file. Any Ideas ? Thanks for your reply.0
-
May be that there is problem, that the Navision open connection with the POS system but when terminating Navision, this communication is not closed and on next attempt to connect to the POS the system say that the comm is opened with another app...0
-
It sounds to me like the component is kept in memory somehow after you close Navision. In your code, make sure you clear the automation variable from memory:
CLEAR(MyAutomationVariable);
This should destroy the object and clear it from memory. If your call to the automation is on a form, you will want to put this code in OnCloseForm or something like that. Probably if you are doing this in a defined processm, you should put it at the end of the process.0 -
The command on the form triggers a Codeunit wereas on Init the automation variable is cleared CLEAR(TPos); before it is created. This is working fine on several other POS stations - but they all have windows 2000. Thk for reply.0
-
-
Right, the key for these automation objects is to maintain the objects, and that includes destroying them when you're done with them. There's a CLEAR statement before the CREATE to make sure there's no error if there is already another instance of that object.
When you're done with the object (i.e. at the end of your code), use another CLEAR command. It's worth a try isnt it.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions