|
I had to do a little digging to find out what "FOP" was. Keeps growing and running the system out of RAM?? I'm not surprised. According to the Apache FOP[^] documentation, it's not uncommon to see it consume LARGE amounts of RAM. Your system probably just doesn't meet the requirements, for the current version of FOP, to do what you want, how you want to do it. Most likely, the problem is being caused by your own XSL code.
You're not going to debug this thing under Visual Studio because VS can't debug anything in the Java Runtime. That's for a Java Development Environment to do.
Besides, 256MB of RAM is enough to run Visual Studio, but you'll run the machine out of RAM just launching it and IT will start swapping and slowing everything else down.
And this question had nothing to do with C#...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I appologize for posting my question here, it's just i thought i could step the code through Visual Studio (i'm using C#, learning as i go). But i understand your point of view. I found out that i could generate the xsl-fo by using the xalan.bat to try and find if my problem is in the conversion from xsl and xml to xsl-fo or in the xsl-fo to pdf...
Thank you for taking the time to help me.
i'll take it from here.
He who laughs last...
|
|
|
|
|
Hi,
I am currently working on a project named "motion detection to control pc". It is a project which can assist paralysed patient to access the pc using facial movement.
I have a webcam capturing movement of head and translate it to mouse(cursor) movement.
Do anyone have any idea on how to use codes to control/ program the mouse(cursor) movement?
Thanks~
|
|
|
|
|
In Windows Forms, the mouse cursor's location can be set via the static Cursor.Position property.
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi,
I am a newbie towards c#, not very sure whether i did the correct way. Can you assist me?
I have write a simple coding using Cursor.Position:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public void MoveCursor()
{
if(!this.Cursor.Equals(Cursors.Default))
{
this.Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(Cursor.Position.X - 50, Cursor.Position.Y - 50);
MessageBox.Show(Cursor.Position.X.ToString);
}
}
private void Form1_Load(object sender, System.EventArgs e)
{
MoveCursor();
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I actually wanna do a simple codes which can read the current mouse position and write a new mouse position to it. However, the above codes cause an error: "Method 'int.ToString(string)' referenced without parentheses" which i do not the cause of this error.
|
|
|
|
|
hi
is there any activex component for pocket pc ??
actually i wanna develop mp3 player in c# for pocket pc.
i am trying to add window media player control in pocket pc form. but not succeed
so please help if any one know
thanks
raj
india
india
|
|
|
|
|
Hi, I am new to C# and visual studio, please direct me to an alternative to database method of saving data as my details usually get too large. eg: taking the familiar Customers and Orders scenario, one customer does not have to be linked to another. I want to use Open and Save As file to save One customer and variable number of orders using customer name or ID as filename.
Do I have to use Binary Read and Write? Thank You
Ramhith
|
|
|
|
|
First and foremost, if your details are getting to large it sounds like a very likely candidate for a database and normilization. As for the Open and Save functionality that is user eye candy which you can map to any functionality you want. If you are truly adament about not using a database there are a myriad of options. XML files ( use xml serializer), Binary files, DataSets, bitmaps, really you can get real creative on this if you want.
Use a DB, save yourself the headache.
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
i have a program in which i have a switch statement and subsequent case statements in which i start some threads(each per case).i have not implemented any Gui event handlers as of yet but my application freezes for as long as those threads reach to completion.
what may be the probelm?
i can send the sample code if someone may wish to see it.
|
|
|
|
|
so your saying that when your thread is created and executed you have no reference at all the any control or form properties?
You could also try control.invoke to call the thread?
Gav
|
|
|
|
|
What does Main do? Surely your switch case is not inside Main . Also, posting the relevant piece of code would help.
Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
|
|
|
|
|
Mystic_ wrote: i can send the sample code if someone may wish to see it.
How about just the switch snippet statement and the line where the app freezes? That would be the most helpful and is your best bet to get an answer to your question.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Messianic Instrumentals (with audio)
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
to give u idea of what iam saying.
this is just a picture of what iam trying to imply
i have a class
public class Form1 : System.Windows.Forms.Form
{
public struct Data
{
public int data;
public Element_tg element;
}
public class Element_tg
{
public string elementstr;
public int count;
public bool last;
public int set_ele;
public Element_tg child;
public Element_tg parent;
}
pubic class ThreadProp
{
public static Data info1,info2;
public static string file1,file2;
public static string origin;
public static string filename;
public static bool nav;
public static NameValueCollection nvcol;
public static string url;
public static Uri uri;
public static string result;
public void Ext_Text()// uses string file1, Data info1,
bool nav
{
//uses a com component and rest all is simple programming
/ /its a lengthy code
}
public void Test_Download()// uses string file2, Data
info2,string origin,string filename
{
//call another function which interacts with internet for
downloads
}
public void WebInteract()//uses string url, (this ones not
necessary) string type,NameValueCollection nvcol
{
//this one also interacts with internet
}
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void bt_load_Click(object sender, System.EventArgs e)
{
ThreadProp tr=new ThreadProp();
switch()
{
case 1:
Thread thrr=new Thread(new ThreadStart(tr.Ext_Text));
thrr.Start();
break;
case 2:
Thread thrr=new Thread(new ThreadStart(tr.Test_Download));
thrr.Start();
break;
case 3:
Thread thrr=new Thread(new ThreadStart(tr. WebInteract));
thrr.Start();
break;
}
}
}
-- modified at 19:02 Monday 17th July, 2006
|
|
|
|
|
now let me state the problem again.
problem is this that i used multithreading to remove this short comming from my program, that it halts when in execution.
even with multiple threads its halt when executing. that is it dont respond to gui interaction.
its GUI freezes. i used ThreadPool too but that wont solve my problem either.
|
|
|
|
|
Thread thread = new Thread(new ThreadStart())
thread.Start()
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
sorry. that was just a typing mistake. in actual, in source code, it is with Start() method. every thing is getting executed,including threads, but problem is the same. of GUI getting frozen
|
|
|
|
|
I would put some tracing in a few of those functions to try and narrow down the bottle-neck. For instance, put a System.Diagnostics.Trace.WriteLine call before and after you spawn the new thread. Also put in a trace inside each thread function, at the beginning and at the end. Run the program in debug mode and check the output.
It would be particularly helpful to know if your main thread is getting stuck on Thread.Start or on some subsequent function.
Sincerely,
Alexander Wiseman
|
|
|
|
|
i will try that one out. thanx
|
|
|
|
|
If you want, you can post the trace output on the forum here and I'll see if I can help.
Sincerely,
Alexander Wiseman
|
|
|
|
|
my application is GUI based so where does Trace write its messages. how can i find them?
|
|
|
|
|
There are two ways to see the output:
First, the quick and easy way:
1) If you're using Visual Studio, then run the program in debug mode by pressing F5. When the program exits, you can see all of the trace output in the "Output" window - the same window in which you see the results of the last Build command. In VS 2003 (and I think it is probably in 2002 as well), there is a drop-down box which allows you to select what kind of output you wish to view. After running the program in debug mode, my VS window shows two options "Build" and "Debug". If you set it on "Debug", you should see the trace output.
Second, the way which takes a little bit longer, but results are more permanent:
2) Setup a TextWriterTraceListener which will automatically write trace output to a file. Here's how: first, you'll need to make sure you reference the System.Diagnostics namespace in your main form file:
using System.Diagnostics; Second, put a variable in your main form code:
private TextWriterTraceListener myListener; Now, put the following code into your application's main form constructor, or Load event handler:
myListener = new TextWriterTraceListener("logFile.txt");
Trace.Listeners.Add(myListener); And you're done! Run the program and then look at the file "logFile.txt" for the output.
Hope that helps! Let me know what you find.
Sincerely,
Alexander Wiseman
|
|
|
|
|
its in the start of web interaction
its in the end of Web interaction
its in the start of text extract
its in the end of text extract
'Testing.exe': Loaded 'c:\windows\assembly\gac\microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\microsoft.mshtml.dll', No symbols loaded.
The thread '<no name="">' (0xc9c) has exited with code 0 (0x0).
'Testing.exe': Loaded 'c:\windows\assembly\gac\custommarshalers\1.0.5000.0__b03f5f7f11d50a3a\custommarshalers.dll', No symbols loaded.
The thread '<no name="">' (0xf78) has exited with code 0 (0x0).
|
|
|
|
|
i read it and both the threads which should start r getting started. but GUI still freezes while these two threads execute.
|
|
|
|
|
Did you put a trace command after the new Thread(new ThreadStart(...)) line in the main code? If not, try that first. If so, did it get output? That is an important point because it will determine whether your main application is getting stuck on the creation of the thread, or on a subsequent call.
Sincerely,
Alexander Wiseman
|
|
|
|
|
its in the start of web interaction
its in the end of Web interaction
its in the start of text extract
its in the end of text extract
'Testing.exe': Loaded 'c:\windows\assembly\gac\microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\microsoft.mshtml.dll', No symbols loaded.
The thread '' (0xc9c) has exited with code 0 (0x0).
'Testing.exe': Loaded 'c:\windows\assembly\gac\custommarshalers\1.0.5000.0__b03f5f7f11d50a3a\custommarshalers.dll', No symbols loaded.
The thread '' (0xf78) has exited with code 0 (0x0).
The four starting lines r produced by Trace.
"its in the start of web interaction" was written before one .Start() method and the "its in the end of Web interaction" is used after .Start() method and same applies to the 2 lines below that. they r giving output
|
|
|
|