On Aug 20, 3:56 pm, "Arda " <ardaa...@hotmail.com> wrote:> One more thing that i forgot to mention; the code i gave above creates a java frame and when i compile it, it doesnt work like a figure window. After appearing on screen it suddenly disappears and my application terminates (i also checked from task manager). I know that using a Matlab figure instead of a java frame is a solution but is it possible to use a java frame with a reasonable way? (using a pause shouldnt be one for example..)

---------------------------------------------------------------------How are you launching it? Are you double-clicking on the icon inWindows Explorer (My Computer)? Yes if it bombs it will barf a bunchof stuff to the console window and then immediately close down theconsole window. You need to run it from the command line or MATLAB inorder to have all the stuff it barfed up remain for you to inspect.Here, try this:

Take these lines and save them to a file and call the fileRunDOSPromptHere.reg:

Now double click that file and say yes when it asks you for permissionto change the registry. What this will do is give you a new contextmenu when you right click on a folder in Windows Explorer. You canbrowse to any folder (such as the one where your exe lives) and thenright click and select "Run MS-DOC Prompt here" from the pop-upcontext menu. It will immediately give you a console window with thatfolder as the current directory. Basically it's the same as doingStart/Run/cmd and then typing cd "c:\whatever\blahblahblah\yadayada"Now, once you're in that folder, type the name of your executable andit will run. BUT when it barfs and exits, all the stuff you printedout plus all the error messages will remain in the console window foryou to inspect. You can do this on your target computer.

Have you verified that the executable works on your developmentmachine? You can do that by cd'ing to the folder where you told it toput the exe. Then, in the MATLAB command window type ! (exclamationmark) followed immediately (no space) with the name of yourexecutable. If it crashes also on your computer then that gives yousomething to track down easier than deploying and trying to debug onthe target computer. The crash info will appear, and remain, in theMATLAB command window.

Finally since you paid $5000 for the compiler, the Mathworks is prettyhelpful in helping you. I've had them track down some pretty esotericissues with compiled programs before. So if the entries in the FAQhave all been tried and all failed, give the Mathworks tech support atry - might as well get some support for your $5k.Good luck,ImageAnalyst