Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 143067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:02:12+00:00 2026-05-11T08:02:12+00:00

I’m having trouble with loading and compiling a new version of existing classes. At

  • 0

I’m having trouble with loading and compiling a new version of existing classes. At the time they are loaded, there aren’t any references in use to them. Class ‘Test.Extended’ extends class ‘Test.Base’. Class ‘Extended’ calls a ClassMethod on class ‘Base’. The problem is that even after loading and performing a forced compile on both classes, the ClassMethod from ‘Base’ that gets called is not the method on the new compiled class, but the older version of it (confirmed by writing to the console).

To compile both, I’m using the following commands from the terminal (f: means force, c: means compile while loading):

NAMESPACE>w $system.OBJ.Load('C:\Test.Base.cls.xml','fc')  Load started on 01/27/2009 10:10:34 Loading file C:\Test.Base.cls.xml as xml Imported class: Test.Base Compiling class Test.Base .................. Compiling routine Test.Base.1 Load finished successfully. 1  NAMESPACE>w $system.OBJ.Load('C:\Test.Extended.cls.xml','fc')  Load started on 01/27/2009 10:10:34 Loading file C:\Test.Extended.cls.xml as xml Imported class: Test.Extended Compiling class Test.Extended .................. Compiling routine Test.Extended.1 Compiling routine Test.Extended.2 Load finished successfully. 1 

We need those two file to be loaded and compiled automatically by the system, but we can’t do that, because the system keeps using the older version. Does anybody have an idea on how to force Intersystems Caché to use the latest version of compiled classes?

Thanks, Luis

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:02:12+00:00Added an answer on May 11, 2026 at 8:02 am

    Here are a couple of things to try:

    Instead of loading/compiling each class separately, load both without compiling, then compile both at once.

    Like this:

    W $SYSTEM.OBJ.Load('C:\Test.Base.cls.xml') W $SYSTEM.OBJ.Load('C:\Test.Extended.cls.xml') W $SYSTEM.OBJ.CompileList('Test.Base.cls,Test.Extended.cls','ckf') 

    The ‘k’ flag tells the compiler to keep the generated source for the classes (.INT files). That will let you see what Cache actually generated (In Studio: View->View Other Code). Your methods get compiled into tags prefixed with ‘z’, so method ABC becomes tag zABC. There’s also a timestamp in the compiled source that can help confirm that it actually did something.

    The ‘b’ flag might help too. (Include sub-classes).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.