View Full Version : Simba closing all the time
masterBB
05-25-2011, 08:38 PM
While I work on my interface debugger I notice that sometimes(50%) simba closes when I give it a search through a lot of interfaces. Normally this would take a second or 2-3, but then it gets stuck on the first interface. Directly after simba closes without a warning or whatever.
Can anyone help me out, I can't figure this one out.
Solved
Wizzup?
05-25-2011, 08:42 PM
Try running it from the command line? Might give meaningful messages.
masterBB
05-25-2011, 10:12 PM
Here is the command line:
http://ancientbb.com/msdoserrors.JPG
Maybe you can figure this out. But to me it feels like simba is closing itself. Maybe I did something wrong with my script?
masterBB
05-25-2011, 10:51 PM
Yeah, post script.
http://villavu.com/forum/showthread.php?t=64545
Flight
05-26-2011, 01:30 AM
That's odd because I was working with Forms lately as well and shortly after closing my form Simba will stop working and either crash or I'll have to close it out through the command prompt. Is there something you should be calling/freeing when you close a form?
masterBB
05-26-2011, 07:40 AM
That's odd because I was working with Forms lately as well and shortly after closing my form Simba will stop working and either crash or I'll have to close it out through the command prompt. Is there something you should be calling/freeing when you close a form?
The odd thing is, I don't close my form. The only thing I know is that if you call a function from a form, with Smart open, you need to reopen smart or else it will close. I believe there is some unexpected behavior with forms.
Naike
05-26-2011, 07:45 AM
It seems like SMART is the bad guy.. or your code, depends on how you look at it :)
masterBB
05-26-2011, 07:49 AM
It seems like SMART is the bad guy.. or your code, depends on how you look at it :)
I already fix'd the smart issue, but everything closes now. Everything. Code is perfect though ;)
E: This time it closed with a simba stopped working screen, here is the info(sorry for it being Dutch):
Probleemhandtekening:
Gebeurtenisnaam van probleem: APPCRASH
Naam van de toepassing: Simba.exe
Versie van toepassing: 0.0.0.0
Tijdstempel van toepassing: 4d375cdd
Naam van foutmodule: StackHash_335e
Versie van foutmodule: 0.0.0.0
Tijdstempel van foutmodule: 00000000
Uitzonderingscode: c00000fd
Uitzonderingsmarge: 7359e2c4
Versie van besturingssysteem: 6.1.7600.2.0.0.768.3
Landinstelling-id: 1043
Aanvullende informatie 1: 335e
Aanvullende informatie 2: 335ebe5a2788dbca15ea0733092b731b
Aanvullende informatie 3: 79b1
Aanvullende informatie 4: 79b1907530b6860c506db112e1d71247
Wizzup?
05-26-2011, 09:26 AM
Ironically your paste of the command line just shows Simba shutting itself down, without any crash. I have a few more exams but then I can take a look at some issues. Although many script-form related things will be hard to solve, if at all viable.
masterBB
05-26-2011, 10:22 AM
Shiny new screenshot. I used Simba debug version in combination with running from command line.
http://ancientbb.com/msdoserrors2.JPG
This one gives an access violation...
Edit: An exception while showing an other exception while showing an other exception :O
http://ancientbb.com/msdoserror3.JPG
Harry
05-26-2011, 11:35 AM
It looks like form issues. I never use forms, and then never get crashes.
masterBB
05-26-2011, 03:27 PM
It seems this also happens when there isn't a form used. You have to take in mind my search function searches through +/- 6000 different interfaces or childs. So some unsuspected behavior was not that unsuspected. Will keep debugging, but still need help with this script.
edit: Nvm, forms can even crash your script if they aren't even opened in that session.
Coh3n
05-26-2011, 03:58 PM
On the issue of forms - my Simba always crashed a when developing a form. With help from Dgby, I now use this default setup and I haven't had Simba crash once. Try it out and see how it goes.
program formTemplate;
var
Form: TForm;
procedure Form_Init;
begin
Form := TForm.Create(nil);
with Form do
begin
Caption := 'Form Template';
SetBounds(100, 100, 500, 300);
end;
Form.ShowModal;
end;
procedure Form_SafeCall(Proc: string);
var
v: TVariantArray;
begin
SetLength(v, 0);
ThreadSafeCall(Proc, v);
end;
procedure Form_Free();
begin
Form.Free();
end;
begin
ClearDebug();
try
Form_SafeCall('Form_Init');
except
Writeln(ExceptionToString(ExceptionType, ExceptionParam));
finally
Form_SafeCall('Form_Free');
end;
end.
Wooow.. what's going on with the **?
E: Here -> http://paste.villavu.com/show/TgNgTamdC1ZpOjzddmfC/
masterBB
05-26-2011, 04:04 PM
On the issue of forms - my Simba always crashed a when developing a form. With help from Dgby, I now use this default setup and I haven't had Simba crash once. Try it out and see how it goes.
program formTemplate;
var
Form: TForm;
procedure Form_Init;
begin
Form := TForm.Create(nil);
with Form do
begin
Caption := 'Form Template';
SetBounds(100, 100, 500, 300);
end;
Form.ShowModal;
end;
procedure Form_SafeCall(Proc: string);
var
v: TVariantArray;
begin
SetLength(v, 0);
ThreadSafeCall(Proc, v);
end;
procedure Form_Free();
begin
Form.Free();
end;
begin
ClearDebug();
try
Form_SafeCall('Form_Init');
except
Writeln(ExceptionToString(ExceptionType, ExceptionParam));
finally
Form_SafeCall('Form_Free');
end;
end.
Wooow.. what's going on with the **?
E: Here -> http://paste.villavu.com/show/TgNgTamdC1ZpOjzddmfC/
Thanks a lot, gonna try this.
Edit: figured it all out!
There is a bug in reflection 2. Will pm drags111 about it.
masterBB
05-26-2011, 05:14 PM
Oh and thanks all for helping!
edit: This post should've been an edit... oh wel.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.