CFRONT problem with memory

jbolks
Member Posts: 17
I use CFRONT to make a connection with Navision from my Visual basic application. It works good. However, everytime I close the connection and create a new connection there is an additional amount of 92K in use. So if we do this 500 times a day... we have a big problem.
Is there an error in the CFRONT-connection?
Has anybody a solution for this?
Regards
Jan
jbolks@foqus-ict.nl
Is there an error in the CFRONT-connection?
Has anybody a solution for this?
Regards
Jan
jbolks@foqus-ict.nl
0
Comments
-
Hy Jan
Sorry i cant help you in your question, but you
have maybe some example or ex. sheet, which describe
then connetion between VB and Cside for me ?!
I have only a little bit knowledge in OCX programming !
Thanks Alex
mfg AlexBest regards
Alex Schubert
ERP & Navision
Dolphin Communication Technologies GmbH
Otto-Hahnstr. 1 c
D-69190 Walldorf0 -
When you install CFRONT see the CFRONT.xls example in the cfront-directory.
But are there programmers using CFRONT & Visual Basic ?0 -
I'm don't meeted problem like yours.
Try use ReleaseAllObjects then disconected & then coused error.
But I don't thik that is problem of CF, check your code for mem allocation errors, because CF using the same buffer for the same conection (if you don't change server).0 -
I just created a small test program with only:
class Connection
public sub connect()
Dim myNav as CFRONT
set myNav = new CFRONT
myNav.releaseAllObjects
myNav.openDatabase(db,0, false)
myNav.closeDatabase()
set myNav = Nothing
end sub
Creating/connect/deleting this class cost everytime 68K memory.
connectServer/disconnectserver cost 76K memory
stopOnAllExceptions = False cost 8K memory
OpenCompany/CloseCompany cost 8k memory
(see for this in the Windows NT Task manager
By the way I've test it with CFRONT 2.01 and 2.0.00 -
I don't know vb but:
class Connection
public sub connect()
Dim myNav as CFRONT
set myNav = new CFRONT
myNav.releaseAllObjects
myNav.openDatabase(db,0, false)
myNav.closeDatabase()
set myNav = Nothing
//did it release myNav ? in C it must be like
free myNav;
end sub0 -
Yes... 'set myNav = Nothing' releases myNav (is same as C-statement 'Free myNav')0
-
Hmmm, looks like destructor not works.
Try use GetObject or func. that not allocate mem & returs pointer 2 obj.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