|
venkatreddy puram wrote: > > Dou number = 350000 ; > Provider = StringC(%Trim(SrvProvider)); > User = StringC(%Trim(User_Name)); > PassWord = StringC(%Trim(Pass_Word)); > J_AlgID = StringC(%Trim(AlgID)); > J_KeyID = StringC(%Trim(KeyID)); > J_EncryptedStr = StringC(%Trim(EncryptedStr)); > > number += 1; > EndDo; Maybe the JVM is running out of objects. On each iteration of your loop, you are creating 6 objects, but never freeing them. You could use the PushLocalFrame and PopLocalFrame JNI functions to free all the created objects at once, each time you run your code. This FAQ entry http://faq.midrange.com/data/cache/282.html has the code for RPG wrappers called beginObjGroup and endObjGroup. You could use the wrappers like this: D env s * /free env = getJniEnv(); // this may start the JVM - read the warning at the end of the FAQ entry number = 1; Dou number = 350000; beginObjGroup (env : 100); Provider = StringC(%Trim(SrvProvider)); User = StringC(%Trim(User_Name)); PassWord = StringC(%Trim(Pass_Word)); J_AlgID = StringC(%Trim(AlgID)); J_KeyID = StringC(%Trim(KeyID)); J_EncryptedStr = StringC(%Trim(EncryptedStr)); --- do something with these objects endObjGroup (); // free all objects created since beginObjGroup number += 1; EndDo;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.