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 58411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:50:37+00:00 2026-05-10T17:50:37+00:00

In my program, I have been receiving an error when I use a command-line

  • 0

In my program, I have been receiving an error when I use a command-line compile command for mxmlc. The error is related to an embedded font name not being correctly identified by flex in the system fonts list.

However, on a whim, I decided to copy the code to Flex Builder and compile it there. To my surprise, it worked, and it found the proper font using the same system name I had given (PMingLiU).

I suspected my problem may be a locale one, and that my system cannot correctly identify the font name because of locale considerations.

I’ve tried setting the locale of the compile code to en_US, to no avail. So I would like to ask if anyone here knows how exactly Flex Builder invokes the MXML compiler and what differences there are compared to running mxmlc directly? We know it’s not using the mxmlc.exe directly, since we tried replacing mxmlc with our own executable to capture the command line parameters.

If it matters, the OS used is Windows XP.

  • 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-10T17:50:38+00:00Added an answer on May 10, 2026 at 5:50 pm

    Although I don’t have the exact answer to your question (what command line arguments Flex Builder passes to mxmlc.exe), I do have a meta-answer for you. You can find the command line by using one of two methods.

    The first is platform-agnostic but will require you to compile a small C++ program. I’ve used this approach before when solving similar problems. What you can do is create a wrapper application which simply outputs the command line to a file. Build this application and drop it in as a temporary replacement for your mxmlc.exe, and when Flex Builder executes it you’ll be able to access the resulting file ‘cmdline.txt’ to get the full command line that it was called with:

    #include <iostream> #include <fstream> using namespace std;  int main(int argc, char* argv[]) {   ofstream cmdLine;   cmdLine.open('cmdline.txt');    for (int i = 0; i < argc; i++) {     cmdLine << argv[i];     if (i < argc)       cmdLine << ' ';   }    cmdLine.close();   return 0; } 

    If you don’t feel right about playing this dirty trick on Flex Builder, there is an alternative assuming you’re running on Windows. You can use WMI to iterate over all of the running processes and grab their command line information. Ruby being my language of choice, this would require you to install the Ruby interpreter for Windows which you can do easily with the One-Click Ruby Installer for Windows.

    After installing, just run this script as soon as Flex Builder kicks off your build:

    require 'win32ole' wmi = WIN32OLE.connect('winmgmts://') processes = wmi.ExecQuery('select * from win32_process')  for process in processes do     cmdLine = process.CommandLine     puts 'Command line: #{cmdLine}' if cmdLine =~ /mxmlc/ end 

    I’ve added in a regular expression to print out the command line only for processes which were started with ‘mxmlc’ in the command line (which should work for your needs). For a more general solution of iterating over each process, just remove the if clause at the end of the line containing:

    puts 'Command line: #{cmdLine}' if cmdLine =~ /mxmlc/ 

    This will save you the headache of doing any low-level magic with StartRemoteThread and navigating through the PEB structures.

    That’s about the best I could do considering the nature of your question and without more information regarding your development OS. If this solves your problem I might suggest that you edit your post so that people facing similar issues can find this solution. A title like ‘How to get command line arguments for a running process’ might be more apt.

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

Sidebar

Ask A Question

Stats

  • Questions 86k
  • Answers 86k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Why do you want to do that ? The identity… May 11, 2026 at 5:24 pm
  • Editorial Team
    Editorial Team added an answer String is probably a special case. I think I would… May 11, 2026 at 5:24 pm
  • Editorial Team
    Editorial Team added an answer The problem is that you are trying to do work… May 11, 2026 at 5:24 pm

Related Questions

TL;DR version: I have two threads. One of them might need to Interrupt() the
Ladies and Gents, My best friends and I do a Secret Santa type gift
I have been writing C for only a scant few weeks and have not
In my MIPs Assembly Programming class I've been tasked with writing a program that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.