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 in Windows Explorer (My Computer)? Yes if it bombs it will barf a bunch of stuff to the console window and then immediately close down the console window. You need to run it from the command line or MATLAB in order 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 file RunDOSPromptHere.reg:
Now double click that file and say yes when it asks you for permission to change the registry. What this will do is give you a new context menu when you right click on a folder in Windows Explorer. You can browse to any folder (such as the one where your exe lives) and then right click and select "Run MS-DOC Prompt here" from the pop-up context menu. It will immediately give you a console window with that folder as the current directory. Basically it's the same as doing Start/Run/cmd and then typing cd "c:\whatever\blahblahblah\yadayada" Now, once you're in that folder, type the name of your executable and it will run. BUT when it barfs and exits, all the stuff you printed out plus all the error messages will remain in the console window for you to inspect. You can do this on your target computer.
Have you verified that the executable works on your development machine? You can do that by cd'ing to the folder where you told it to put the exe. Then, in the MATLAB command window type ! (exclamation mark) followed immediately (no space) with the name of your executable. If it crashes also on your computer then that gives you something to track down easier than deploying and trying to debug on the target computer. The crash info will appear, and remain, in the MATLAB command window.
Finally since you paid $5000 for the compiler, the Mathworks is pretty helpful in helping you. I've had them track down some pretty esoteric issues with compiled programs before. So if the entries in the FAQ have all been tried and all failed, give the Mathworks tech support a try - might as well get some support for your $5k. Good luck, ImageAnalyst