Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Doc/view question...?? Pin
alex.barylski25-Feb-02 14:06
alex.barylski25-Feb-02 14:06 
GeneralRe: Doc/view question...?? Pin
Jay Beckert26-Feb-02 10:37
Jay Beckert26-Feb-02 10:37 
AnswerRe: Doc/view question...?? Pin
Mazdak25-Feb-02 17:01
Mazdak25-Feb-02 17:01 
Generalvc6 macros: Object model shortcomings & bugs Pin
rseidl25-Feb-02 11:29
rseidl25-Feb-02 11:29 
GeneralRe: vc6 macros: Object model shortcomings & bugs Pin
J Patel25-Feb-02 11:36
J Patel25-Feb-02 11:36 
GeneralWTL Question - Pointers to different dialogs Pin
David Stidolph25-Feb-02 11:07
David Stidolph25-Feb-02 11:07 
GeneralRe: WTL Question - Pointers to different dialogs Pin
Joaquín M López Muñoz25-Feb-02 11:26
Joaquín M López Muñoz25-Feb-02 11:26 
GeneralWorks ok in app but not in dll :( Pin
Muralia Dhar25-Feb-02 10:44
Muralia Dhar25-Feb-02 10:44 
hi everyone! i have the following problem: i have,

#define SOME_CONST 10

typedef struct
{
   void* pData;
} SomeStruct;

and then,

static __declspec(thread)
   SomeStruct ArrayStruct[SOME_CONST];

and then later in the same file, while initializing my thread local storage data (this function is called once for every new thread that i start, for initialization),

static void SomeFunc(void)
{
   for(int i = 0; i < SOME_CONST; i++)
   {
      ArrayStruct[i].pData = NULL;
   }
   return;
}

this works fine when i use this code in my console app, but when i use the same code in my dll (doesn't use mfc), it crashes and exits saying access fault and that some memory could not be "read". the access violation happens at i == 0, ie in the first iteration of the for loop. what gives? Confused | :confused: Confused | :confused: Confused | :confused:

-----------Muralia Dhar

--*--*--*--*--*--*--*--
What goes up, comes down. Ask any system administrator.
--*--*--*--*--*--*--*--
GeneralRe: Works ok in app but not in dll :( Pin
Joaquín M López Muñoz25-Feb-02 11:08
Joaquín M López Muñoz25-Feb-02 11:08 
GeneralRe: Works ok in app but not in dll :( Pin
Muralia Dhar25-Feb-02 19:46
Muralia Dhar25-Feb-02 19:46 
GeneralRe: Works ok in app but not in dll :( Pin
Joaquín M López Muñoz25-Feb-02 20:16
Joaquín M López Muñoz25-Feb-02 20:16 
GeneralDamn Tray Notification Icon! Pin
25-Feb-02 9:22
suss25-Feb-02 9:22 
GeneralRe: Damn Tray Notification Icon! Pin
Roger Stewart25-Feb-02 11:25
professionalRoger Stewart25-Feb-02 11:25 
GeneralRe: Damn Tray Notification Icon! Pin
Nish Nishant25-Feb-02 14:47
sitebuilderNish Nishant25-Feb-02 14:47 
GeneralDatabase: mfc-odbc api getting column information Pin
25-Feb-02 8:29
suss25-Feb-02 8:29 
Questionhow do i use the "reinterpret_cast" operator? Pin
Pyropat25-Feb-02 8:13
Pyropat25-Feb-02 8:13 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Tim Deveaux25-Feb-02 8:34
Tim Deveaux25-Feb-02 8:34 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Paul M Watt25-Feb-02 9:30
mentorPaul M Watt25-Feb-02 9:30 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Nish Nishant25-Feb-02 16:19
sitebuilderNish Nishant25-Feb-02 16:19 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Sef Tarbell27-Feb-02 4:59
Sef Tarbell27-Feb-02 4:59 
GeneralRe: (corrected)how do i use the "reinterpret_cast" operator? Pin
Sef Tarbell27-Feb-02 5:01
Sef Tarbell27-Feb-02 5:01 
GeneralDirectX or OpenGL Pin
Nnamdi Onyeyiri25-Feb-02 7:54
Nnamdi Onyeyiri25-Feb-02 7:54 
GeneralRe: DirectX or OpenGL Pin
Christian Graus25-Feb-02 8:34
protectorChristian Graus25-Feb-02 8:34 
GeneralRe: DirectX or OpenGL Pin
Jeremy Falcon25-Feb-02 8:41
professionalJeremy Falcon25-Feb-02 8:41 
GeneralSubclassing a CComBSTR Pin
Mauricio Ritter25-Feb-02 6:48
Mauricio Ritter25-Feb-02 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.