Search found 128 matches

by mrdebug
Wed Jul 28, 2010 7:13 pm
Forum: C++ Development
Topic: Incomprensible crash on some pc.
Replies: 3
Views: 407

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: 407

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: 965

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: 965

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: 965

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: 965

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: 361

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: 917

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: 917

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: 965

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: 965

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: 360

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...
by mrdebug
Tue Aug 11, 2009 5:06 pm
Forum: C++ Development
Topic: Pointer to function
Replies: 6
Views: 479

I think I need something like the custom event that works like a pointer to function. I think that the custom event can pass something like argument and can return something. In pascal is very simple to do. It seems to me that there are two way to write custom events in wxWidgets. Which is the simpl...
by mrdebug
Sun Aug 09, 2009 4:21 pm
Forum: C++ Development
Topic: Pointer to function
Replies: 6
Views: 479

Pointer to function

How I write a pointer to function between two classes?
I have wrote something like this:

Code: Select all

    ...
    void (*MyPointer)();
    MyPointer= Print;
}

void wxFViaggioImp::Print() {
}
but does not work.
Can you help me?
by mrdebug
Fri Apr 24, 2009 3:47 pm
Forum: wxCode
Topic: Using wxFreeChart
Replies: 0
Views: 746

Using wxFreeChart

I use wxFreeChart componet in my project.

With bars mode I don't have understand how to increase the font size.
Can I add bars without to specify the colors? Is there an automatic mode to change colors?
How I increase the bar's width?
There is a zoom?
Thanks 1000.