Search found 131 matches

by mrdebug
Sat Nov 08, 2014 2:14 pm
Forum: C++ Development
Topic: Exceptions
Replies: 5
Views: 884

Re: Exceptions

Ok but my problem is a bit different. For example:

Code: Select all

try {
  if () ...
  if () ...
  if (a!= b) generate exception;
  if () ...
} catch (...) {
}
By using a database is very important do not execute the entire function if a query goes bad.
Is there a way to emit a own exception if I want?
by mrdebug
Fri Nov 07, 2014 2:19 pm
Forum: C++ Development
Topic: Exceptions
Replies: 5
Views: 884

Exceptions

How can I use exceptions?
If I use these lines of code

Code: Select all

try {
throws;
} catch (...) {
}
ad "throws" line the program goes to crash.
by mrdebug
Mon Sep 15, 2014 12:27 pm
Forum: Compiler / Linking / IDE Related
Topic: wxPack or new release
Replies: 2
Views: 1154

wxPack or new release

Hi everybody. Some years ago I used wxPack + MinGW TDM + Codeblocks for developing with wxWidgets. Now I have to modify the program. I see that the wxPack is not updated and how to bring up a wxWidgets developing machine is not immediate. Which are the packages to use knowing that I use: Windows Xp ...
by mrdebug
Wed Jul 28, 2010 7:13 pm
Forum: C++ Development
Topic: Incomprensible crash on some pc.
Replies: 3
Views: 422

Does that mean that it crashes always on some systems and never on others? Yes, it is. Very unlikely, as there is only one active thread. Or do you have any secondary threads running? No no, never other thread. How many lines are you usually adding in this piece of code? One or two. Try wxSleep() a...
by mrdebug
Wed Jul 28, 2010 6:03 pm
Forum: C++ Development
Topic: Incomprensible crash on some pc.
Replies: 3
Views: 422

Incomprensible crash on some pc.

Incomprensible crash on some pc. My program goes to crash on some pc and not on others. The behaviour is very strange and the workaround too. The case is about a wxGrid and a way to insert new lines. Look to these lines (In particolar look at the numerated rows): If I comment the row 1 (wxMessageDia...
by mrdebug
Sat Jul 17, 2010 8:29 am
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

If you want and if you have time to spend I can build a virtual machine with all necessary to simulate the crash. I can then send you a userid - password to login and verify the program or I can send you the sources of the program. The program uses a PostgreSQL database to run. If you want do debug ...
by mrdebug
Mon Jul 12, 2010 8:40 pm
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

I use gdb (ver 7) on Codeblocks. The version of the MinGW compiler is 4.4.1 tdm_dw2-05 but the behaviour happens also with MinGW distribuited with Codeblocks.
See the two attached screenshots.
by mrdebug
Sun Jul 11, 2010 8:42 pm
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

Yes, you are right. How I have just explained I use gdb for debug. I have simulated an error to verify that the debugger works fine But it does not detect the error that happens only in one pc but not on the other. In this case it returns only this error: "Program receive signal SIGSEGV, segmentatio...
by mrdebug
Sun Jul 11, 2010 4:07 pm
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

I tryed the debug mode on two pcs, on a laptop and on a desktop. On the desktop the program works fine but on the laptop I obtain the message: "Program receive signal SIGSEGV, segmentation fault.".
by mrdebug
Sun Jul 11, 2010 8:58 am
Forum: C++ Development
Topic: Error on debug
Replies: 2
Views: 382

Error on debug

When I run debug appears the attached popup:
What it mean?
by mrdebug
Mon Jul 05, 2010 9:35 am
Forum: Compiler / Linking / IDE Related
Topic: Unable do link a project in debug mode
Replies: 3
Views: 940

And then how do you think about? Do you think that I have link a badly library or do you think that I have an error in my code?
by mrdebug
Sun Jul 04, 2010 12:15 pm
Forum: Compiler / Linking / IDE Related
Topic: Unable do link a project in debug mode
Replies: 3
Views: 940

Unable do link a project in debug mode

When I try do build a project in debug mode I obtain thi error: multiple definition of wxString ||=== wxTrazioni, Debug ===| C:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_lib\libwxbase28ud.a(baselib_string.o):C:\devel\libraries\wxWidgets2.8.9\build\msw\..\..\src\common\string.cpp|1025|multiple defini...
by mrdebug
Thu Jul 01, 2010 6:39 pm
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

I do not know what happens in some PC but this line: wxTCCostoManutenzioni->SetValue(DoubleToStr(parent->gestionedatabase->GetCostoManutenzioni(indice->id_mezzo), 2)+ SPAZIOEURO); // Baco!!! does not work but these wxString Riga= DoubleToStr(parent->gestionedatabase->GetCostoManutenzioni(indice->id_...
by mrdebug
Thu Jul 01, 2010 7:54 am
Forum: C++ Development
Topic: wxString concatenation crash
Replies: 11
Views: 1026

wxString concatenation crash

Sometimes, in a few Windows computers, the wxString concatenation produces the crash of the program.
This feature is describes here: http://trac.wxwidgets.org/ticket/4789
Why this bug is not been never corrected?
by mrdebug
Thu Aug 13, 2009 3:27 pm
Forum: C++ Development
Topic: Custom event
Replies: 1
Views: 372

Custom event

I have followed this tutorial http://wiki.wxwidgets.org/Custom_Events#Creating_a_Custom_Event_-_Method_4 to write my custom event. This is my header file: #include "wx/wx.h" DECLARE_EVENT_TYPE( MyFooCommandEvent, -1 ) // Could have been DECLARE_EVENT_TYPE( MyFooCommandEvent, -1 ) // Not needed if yo...